3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $t; function myCalculations () { $x=22; echo "<p>Test variable oustide of function:</p>"; echo "Variable x is: $x"; echo "<br>"; echo "Variable t is: $t"; }// Code will only display x myCalculations(); echo "<p>Test variable inside of function:</p>"; echo "Variable x is: $x; echo "<br>"; echo "Variable t is: $t; ?>//Code will only display t </body> </html>

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.280.0090.05512.39
5.4.270.0060.05012.38
5.4.260.0100.05712.38
5.4.250.0090.04412.39
5.4.240.0060.03812.38
5.4.230.0080.03812.38
5.4.220.0060.03912.38
5.4.210.0070.03812.38
5.4.200.0050.04212.38
5.4.190.0100.03612.38
5.4.180.0060.04912.38
5.4.170.0080.05312.38
5.4.160.0050.05312.37
5.4.150.0060.04612.37
5.4.140.0050.03912.06
5.4.130.0090.04212.04
5.4.120.0080.03912.01
5.4.110.0070.03512.00
5.4.100.0070.03912.00
5.4.90.0060.05412.00
5.4.80.0110.05012.00
5.4.70.0070.04812.00
5.4.60.0050.05312.00
5.4.50.0080.05312.00
5.4.40.0130.06211.99
5.4.30.0130.05611.98
5.4.20.0140.07311.98
5.4.10.0110.06811.98
5.4.00.0110.06411.47
5.3.280.0120.05612.71
5.3.270.0120.04812.73
5.3.260.0120.07512.72
5.3.250.0110.07812.72
5.3.240.0190.06812.72
5.3.230.0210.09112.71
5.3.220.0170.07312.68
5.3.210.0110.07512.68
5.3.200.0210.06712.68
5.3.190.0100.05412.68
5.3.180.0130.06812.67
5.3.170.0130.05812.67
5.3.160.0110.05912.67
5.3.150.0150.07112.68
5.3.140.0060.04112.66
5.3.130.0090.04912.66
5.3.120.0080.04012.66
5.3.110.0150.05812.66
5.3.100.0110.04112.11
5.3.90.0080.03812.08
5.3.80.0070.04112.07
5.3.70.0170.04612.07
5.3.60.0260.07612.06
5.3.50.0090.04812.00
5.3.40.0130.07412.00
5.3.30.0110.03611.95
5.3.20.0220.07911.73
5.3.10.0150.07511.70
5.3.00.0510.13411.69

preferences:
140.9 ms | 1394 KiB | 7 Q