3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*Variables: (1)Php has 8 types of variables which include: - Boolean (true/false) - integers - floating integers - strings - arrays - objects - resources - null (2)variables must start with $ sign (3)Variable names can contain a combination of strings, numbers and underscores (4)The first character in the name of a variable must be either a letter or underscore (5)Php variable names are case sensitive (6)Variables can be assigned with equal signs and printed without quotation marks Eg, print $some_variable; , or echo $some_variable; (7)Variables can also be printed with double quotations but cannot with single quotes echo 'Defining a variable:' ,*/ $variable_name = 'this is a string representation of a variable'; echo $variable_name echo 'this is a integer representation of a variable' $variable_name = 30 ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.230.0040.04012.38
5.4.220.0130.03812.37
5.4.210.0090.04112.37
5.4.200.0100.04512.38
5.4.190.0100.04712.37
5.4.180.0100.04312.37
5.4.170.0080.04312.38
5.4.160.0100.03912.37
5.4.150.0100.04112.37
5.4.140.0110.04312.06
5.4.130.0130.03912.04
5.4.120.0120.03812.01
5.4.110.0130.03812.00
5.4.100.0120.03912.00
5.4.90.0100.04212.00
5.4.80.0180.04912.01
5.4.70.0100.04312.00
5.4.60.0100.04212.00
5.4.50.0140.03612.00
5.4.40.0200.06111.99
5.4.30.0100.04111.98
5.4.20.0120.03711.98
5.4.10.0100.03911.98
5.4.00.0090.04211.48
5.3.280.0080.03812.70
5.3.270.0150.04212.72
5.3.260.0120.04512.72
5.3.250.0120.04312.72
5.3.240.0120.04212.72
5.3.230.0150.04312.71
5.3.220.0120.04212.68
5.3.210.0120.04312.68
5.3.200.0140.03812.68
5.3.190.0190.06512.68
5.3.180.0130.04112.68
5.3.170.0220.06012.67
5.3.160.0110.04012.67
5.3.150.0140.03812.67
5.3.140.0110.04212.66
5.3.130.0150.04112.66
5.3.120.0100.04912.66
5.3.110.0150.03912.66
5.3.100.0160.07412.12
5.3.90.0100.04312.08
5.3.80.0090.04412.08
5.3.70.0090.04312.07
5.3.60.0120.04112.06
5.3.50.0100.04212.00
5.3.40.0090.04212.00
5.3.30.0110.03811.94
5.3.20.0120.03911.72
5.3.10.0110.03811.68
5.3.00.0100.04011.67

preferences:
140.61 ms | 1394 KiB | 7 Q