3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = null; // If's - verbose and uneccassry if (! $foo) { $foo = 'default'; } // Short Ternary syntax $foo ?: 'default'; // Long Operator syntax $foo || $foo = 'default'; // Proposed Short Operator syntax $foo =|| "default";

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.220.0070.07719.09
5.4.210.0100.07318.87
5.4.200.0030.08019.23
5.4.190.0070.03719.07
5.4.180.0170.07019.15
5.4.170.0100.04019.23
5.4.160.0170.05319.22
5.4.150.0030.05019.13
5.4.140.0100.03316.46
5.4.130.0000.04016.30
5.4.120.0000.07016.38
5.4.110.0130.06016.45
5.4.100.0170.04016.30
5.4.90.0030.05316.39
5.4.80.0130.06316.52
5.4.70.0000.05716.43
5.4.60.0100.07016.32
5.4.50.0170.03716.42
5.4.40.0030.06016.27
5.4.30.0100.03716.39
5.4.20.0030.06716.34
5.4.10.0000.04316.32
5.4.00.0000.06315.79
5.3.270.0130.07314.54
5.3.260.0130.07014.55
5.3.250.0130.05314.54
5.3.240.0070.03314.49
5.3.230.0130.07714.53
5.3.220.0130.04714.52
5.3.210.0030.08314.36
5.3.200.0070.06714.41
5.3.190.0030.07714.40
5.3.180.0030.05314.46
5.3.170.0070.07714.49
5.3.160.0170.06014.35
5.3.150.0070.04014.58
5.3.140.0070.07314.48
5.3.130.0070.07714.47
5.3.120.0070.04314.64
5.3.110.0030.05014.57
5.3.100.0100.08013.98
5.3.90.0100.06713.96
5.3.80.0070.07013.94
5.3.70.0130.04313.86
5.3.60.0030.04713.83
5.3.50.0000.04713.96
5.3.40.0170.03013.73
5.3.30.0030.04713.73
5.3.20.0030.07313.53
5.3.10.0070.07313.68
5.3.00.0070.03713.57

preferences:
142.5 ms | 1394 KiB | 7 Q