3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Parse error: syntax error, unexpected '[' in Command line code on line 1 // dammit [ 1 => function ($a) { echo $a; } ][1]('foo'); // Parse error: syntax error, unexpected '[' in Command line code on line 1 // sonofabitch [ 1 => function ($a) { echo $a; } ][1]; // ok... ok... here we go function n($o) { return $o; } n([ 1 => function ($a) { echo $a; } ])[1]; // Parse error: syntax error, unexpected '(' in Command line code on line 1 // AW COMEON!! function n($o) { return $o; } n([ 1 => function ($a) { echo $a; } ])[1]('foo');

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.150.2630.03719.20
5.4.140.3770.02716.39
5.4.130.2100.03716.37
5.4.120.2730.04016.35
5.4.110.2670.03316.50
5.4.100.2730.03316.59
5.4.90.2370.02716.55
5.4.80.1770.03016.26
5.4.70.4000.03716.25
5.4.60.3670.03016.33
5.4.50.3600.04016.38
5.4.40.3800.03316.51
5.4.30.3600.03716.42
5.4.20.3600.03316.32
5.4.10.3600.03316.51
5.4.00.3570.03315.91
5.3.250.2930.03714.48
5.3.240.3270.04014.54
5.3.230.2930.04014.55
5.3.220.2530.04014.66
5.3.210.2230.04314.59
5.3.200.2800.03014.50
5.3.190.1270.03714.55
5.3.180.2870.03714.50
5.3.170.3470.03314.40
5.3.160.2770.03314.65
5.3.150.3670.03714.66
5.3.140.3800.03714.41
5.3.130.3770.03014.50
5.3.120.3570.03714.40
5.3.110.3530.04014.40
5.3.100.3830.03714.09
5.3.90.3730.03313.90
5.3.80.3870.03713.85
5.3.70.3930.03313.90
5.3.60.3800.03713.85
5.3.50.3930.02713.72
5.3.40.3700.03013.79
5.3.30.3830.03713.75
5.3.20.2730.03313.55
5.3.10.3800.03313.48
5.3.00.3470.04013.43

preferences:
141.69 ms | 1394 KiB | 7 Q