HomeSimulators › PHP & MySQL

PHP & MySQL

Output, forms, sessions, cookies, SQL & CRUD

50+ simulators are FREE — no login needed! Try them now. Sign up to unlock all 1209 simulators. Sign Up Free

99 simulators found.

PHZ01 · PHP & MySQL

echo Output

echo Output ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ02 · PHP & MySQL

print & print_r

print & print_r ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ03 · PHP & MySQL

Comments

Comments ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ04 · PHP & MySQL

Variables

Variables ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ05 · PHP & MySQL

var_dump (types)

var_dump (types) ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ06 · PHP & MySQL

Data Types

Data Types ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ07 · PHP & MySQL

Constants

Constants ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ08 · PHP & MySQL

String Concatenation

String Concatenation ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ09 · PHP & MySQL

Arithmetic

Arithmetic ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ10 · PHP & MySQL

Increment / Decrement

Increment / Decrement ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ11 · PHP & MySQL

Comparison & Spaceship

Comparison & Spaceship ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ12 · PHP & MySQL

Type Juggling & Casting

Type Juggling & Casting ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ13 · PHP & MySQL

strlen()

strlen() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ14 · PHP & MySQL

strtoupper / strtolower

strtoupper / strtolower ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ15 · PHP & MySQL

ucfirst / ucwords

ucfirst / ucwords ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ16 · PHP & MySQL

trim()

trim() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ17 · PHP & MySQL

str_replace()

str_replace() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ18 · PHP & MySQL

substr()

substr() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ19 · PHP & MySQL

strpos()

strpos() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ20 · PHP & MySQL

explode()

explode() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ21 · PHP & MySQL

implode()

implode() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ22 · PHP & MySQL

sprintf()

sprintf() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ23 · PHP & MySQL

str_repeat & str_pad

str_repeat & str_pad ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ24 · PHP & MySQL

String Interpolation

String Interpolation ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Beginner Login Open →
PHZ25 · PHP & MySQL

Indexed Array

Indexed Array ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ26 · PHP & MySQL

Associative Array

Associative Array ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ27 · PHP & MySQL

Multidimensional Array

Multidimensional Array ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ28 · PHP & MySQL

count()

count() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ29 · PHP & MySQL

array_push / pop

array_push / pop ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ30 · PHP & MySQL

array_merge

array_merge ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ31 · PHP & MySQL

in_array & array_search

in_array & array_search ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ32 · PHP & MySQL

array_keys / values

array_keys / values ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ33 · PHP & MySQL

sort & rsort

sort & rsort ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ34 · PHP & MySQL

asort & ksort

asort & ksort ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ35 · PHP & MySQL

array_map

array_map ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ36 · PHP & MySQL

array_filter

array_filter ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ37 · PHP & MySQL

array_reduce

array_reduce ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ38 · PHP & MySQL

array_slice & splice

array_slice & splice ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ39 · PHP & MySQL

array_column

array_column ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ40 · PHP & MySQL

List / Destructuring

List / Destructuring ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ41 · PHP & MySQL

if Statement

if Statement ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ42 · PHP & MySQL

if / else

if / else ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ43 · PHP & MySQL

elseif Chain

elseif Chain ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ44 · PHP & MySQL

switch

switch ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ45 · PHP & MySQL

Ternary ?:

Ternary ?: ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ46 · PHP & MySQL

Null Coalescing ??

Null Coalescing ?? ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ47 · PHP & MySQL

for Loop

for Loop ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ48 · PHP & MySQL

while Loop

while Loop ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ49 · PHP & MySQL

do-while Loop

do-while Loop ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ50 · PHP & MySQL

foreach

foreach ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ51 · PHP & MySQL

break N

break N ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ52 · PHP & MySQL

continue

continue ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ53 · PHP & MySQL

Define a Function

Define a Function ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ54 · PHP & MySQL

Parameters & return

Parameters & return ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ55 · PHP & MySQL

Default Parameters

Default Parameters ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ56 · PHP & MySQL

Type Declarations

Type Declarations ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ57 · PHP & MySQL

Variable Scope

Variable Scope ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ58 · PHP & MySQL

global Keyword

global Keyword ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ59 · PHP & MySQL

static Variable

static Variable ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ60 · PHP & MySQL

Pass by Reference

Pass by Reference ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ61 · PHP & MySQL

Variadic ...$args

Variadic ...$args ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ62 · PHP & MySQL

Anonymous Function

Anonymous Function ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ63 · PHP & MySQL

Arrow Function

Arrow Function ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ64 · PHP & MySQL

Recursion (Factorial)

Recursion (Factorial) ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ65 · PHP & MySQL

$_GET

$_GET ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ66 · PHP & MySQL

$_POST

$_POST ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ67 · PHP & MySQL

isset & empty

isset & empty ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ68 · PHP & MySQL

htmlspecialchars (XSS)

htmlspecialchars (XSS) ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ69 · PHP & MySQL

$_SERVER

$_SERVER ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ70 · PHP & MySQL

header() Redirect

header() Redirect ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ71 · PHP & MySQL

$_SESSION

$_SESSION ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ72 · PHP & MySQL

$_COOKIE

$_COOKIE ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ73 · PHP & MySQL

Form Validation

Form Validation ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ74 · PHP & MySQL

File Include

File Include ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Intermediate Login Open →
PHZ75 · PHP & MySQL

Define a Class

Define a Class ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ76 · PHP & MySQL

Properties & Methods

Properties & Methods ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ77 · PHP & MySQL

__construct

__construct ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ78 · PHP & MySQL

Visibility

Visibility ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ79 · PHP & MySQL

Inheritance (extends)

Inheritance (extends) ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ80 · PHP & MySQL

parent::

parent:: ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ81 · PHP & MySQL

Interface

Interface ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ82 · PHP & MySQL

Abstract Class

Abstract Class ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ83 · PHP & MySQL

Static Members

Static Members ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ84 · PHP & MySQL

Class Constants

Class Constants ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ85 · PHP & MySQL

__toString

__toString ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ86 · PHP & MySQL

Traits

Traits ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ87 · PHP & MySQL

mysqli_connect

mysqli_connect ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ88 · PHP & MySQL

mysqli Query (SELECT)

mysqli Query (SELECT) ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ89 · PHP & MySQL

Prepared Statement

Prepared Statement ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ90 · PHP & MySQL

INSERT

INSERT ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ91 · PHP & MySQL

UPDATE

UPDATE ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ92 · PHP & MySQL

DELETE

DELETE ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ93 · PHP & MySQL

num_rows

num_rows ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ94 · PHP & MySQL

PDO Connect

PDO Connect ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ95 · PHP & MySQL

PDO Query + fetchAll

PDO Query + fetchAll ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ96 · PHP & MySQL

PDO Prepared

PDO Prepared ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ97 · PHP & MySQL

json_encode / decode

json_encode / decode ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ98 · PHP & MySQL

date() & time()

date() & time() ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →
PHZ99 · PHP & MySQL

Mini Project: CRUD Flow

Mini Project: CRUD Flow ÔÇö interactive PHP simulator with real code, expected output, dry-run steps and exam answer format.

Advanced Login Open →