3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php /* A new exponent operator is introduced into PHP 5.6 */ var_dump(2 ** 32); // Pre-5.6 you would need pow(2,32) /* Power-tower is supported */ var_dump(2 ** 3 ** 4); // Pre-5.6 this would be pow(2, pow(3, 4)) but the syntax is much easier than nesting functions

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.250.0130.07318.94
5.4.240.0100.05718.99
5.4.230.0070.08018.76
5.4.220.0100.07718.80
5.4.210.0070.05319.01
5.4.200.0130.05718.79
5.4.190.0070.05718.89
5.4.180.0000.07718.98
5.4.170.0130.06718.98
5.4.160.0100.06718.98
5.4.150.0070.08018.88
5.4.140.0130.04716.53
5.4.130.0030.05316.38
5.4.120.0130.04716.55
5.4.110.0070.06016.55
5.4.100.0200.04316.46
5.4.90.0100.05716.41
5.4.80.0130.05016.63
5.4.70.0130.05316.49
5.4.60.0130.05716.53
5.4.50.0100.07016.30
5.4.40.0030.07016.44
5.4.30.0200.05016.45
5.4.20.0070.07316.45
5.4.10.0030.05716.48
5.4.00.0000.06315.75
5.3.280.0130.04314.43
5.3.270.0200.06714.53
5.3.260.0100.06014.45
5.3.250.0100.06014.48
5.3.240.0130.06014.32
5.3.230.0230.04014.61
5.3.220.0030.05714.44
5.3.210.0030.08014.57
5.3.200.0130.05314.43
5.3.190.0030.06314.58
5.3.180.0100.05714.66
5.3.170.0200.06014.55
5.3.160.0100.06714.36
5.3.150.0100.06314.34
5.3.140.0000.05714.65
5.3.130.0200.07714.39
5.3.120.0100.07314.55
5.3.110.0100.05014.54
5.3.100.0070.05013.95
5.3.90.0030.05714.04
5.3.80.0070.04713.97
5.3.70.0130.05014.03
5.3.60.0030.05014.00
5.3.50.0170.04313.96
5.3.40.0030.05313.89
5.3.30.0170.03713.75
5.3.20.0030.05013.61
5.3.10.0070.04313.59
5.3.00.0100.04313.48

preferences:
138.4 ms | 1394 KiB | 7 Q