3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo 'construct' . PHP_EOL; } public function moo() { echo 'Moo' . PHP_EOL; } } new Foo()->moo();

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.6.80.0070.06320.38
5.5.240.0000.07020.13
5.4.400.0330.05718.85
5.4.390.0300.05318.70
5.4.380.0230.06018.48
5.4.370.0330.05318.78
5.4.360.0230.05718.48
5.4.350.0330.05318.70
5.4.340.0400.05018.82
5.4.320.0330.07718.61
5.4.310.0400.06718.41
5.4.300.0300.06318.50
5.4.290.0300.05018.84
5.4.280.0430.05718.78
5.4.270.0400.05018.80
5.4.260.0370.05018.69
5.4.250.0300.05718.73
5.4.240.0370.05018.74
5.4.230.0300.06018.58
5.4.220.0200.07018.49
5.4.210.0270.06018.71
5.4.200.0430.05016.57
5.4.190.0270.05718.55
5.4.180.0330.06318.71
5.4.170.0300.07018.45
5.4.160.0300.05718.77
5.4.150.0300.06018.68
5.4.140.0300.06016.29
5.4.130.0230.06316.18
5.4.120.0330.05316.46
5.4.110.0300.04316.44
5.4.100.0400.06016.21
5.4.90.0330.05016.25
5.4.80.0270.05316.29
5.4.70.0330.04316.34
5.4.60.0300.05016.17
5.4.50.0330.04316.27
5.4.40.0300.05016.27
5.4.30.0300.05016.13
5.4.20.0270.05316.24
5.4.10.0270.05316.25
5.4.00.0230.05715.89
5.3.290.0300.05714.88
5.3.280.0470.05714.64
5.3.270.0230.06314.66
5.3.260.0370.04714.68
5.3.250.0230.05714.74
5.3.240.0230.06014.63
5.3.230.0470.04314.60
5.3.220.0370.04714.59
5.3.210.0270.05314.55
5.3.200.0300.05014.57
5.3.190.0370.06714.62
5.3.180.0330.05714.56
5.3.170.0400.06314.59
5.3.160.0370.04314.59
5.3.150.0330.05314.61
5.3.140.0300.05314.64
5.3.130.0400.05714.76
5.3.120.0230.06014.75
5.3.110.0300.05714.59
5.3.100.0330.05014.27
5.3.90.0370.04714.13
5.3.80.0270.05314.26
5.3.70.0270.05714.04
5.3.60.0370.05314.17
5.3.50.0300.06014.07
5.3.40.0330.06314.11
5.3.30.0370.06714.10
5.3.20.0300.05013.69
5.3.10.0400.06313.69
5.3.00.0230.06313.68
5.2.170.0230.04311.25
5.2.160.0200.04311.36
5.2.150.0270.03711.25
5.2.140.0200.04311.13
5.2.130.0300.03711.20
5.2.120.0170.04311.11
5.2.110.0170.04711.17
5.2.100.0130.04711.22
5.2.90.0270.03711.33
5.2.80.0230.04011.17
5.2.70.0200.05011.08
5.2.60.0200.04711.18
5.2.50.0300.03711.13
5.2.40.0230.05311.10
5.2.30.0170.05311.07
5.2.20.0200.04011.09
5.2.10.0200.03710.88
5.2.00.0130.04710.79
5.1.60.0200.03010.20
5.1.50.0230.04010.12
5.1.40.0200.03010.00
5.1.30.0200.03310.37
5.1.20.0200.03310.35
5.1.10.0170.03710.18
5.1.00.0200.04010.19
5.0.50.0100.0308.68
5.0.40.0230.0208.62
5.0.30.0070.0538.41
5.0.20.0070.0308.32
5.0.10.0130.0238.18
5.0.00.0100.0438.24
4.4.90.0130.0205.90
4.4.80.0100.0235.95
4.4.70.0130.0175.88
4.4.60.0130.0205.89
4.4.50.0100.0205.93
4.4.40.0100.0405.86
4.4.30.0070.0275.93
4.4.20.0130.0206.05
4.4.10.0070.0275.93
4.4.00.0100.0375.91
4.3.110.0070.0275.89
4.3.100.0100.0275.81
4.3.90.0130.0235.84
4.3.80.0100.0375.80
4.3.70.0100.0205.83
4.3.60.0100.0205.87
4.3.50.0100.0275.77
4.3.40.0030.0375.75
4.3.30.0030.0234.55
4.3.20.0070.0204.64
4.3.10.0070.0204.52
4.3.00.0030.0207.33

preferences:
147.24 ms | 1394 KiB | 7 Q