3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function Bar() { $this->name = "Hello World\n"; print(); } public function print() { echo $this->name; } } $obj = new Bar(); ?>

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.0130.07320.43
5.5.240.0030.07720.36
5.4.400.0400.05018.54
5.4.390.0330.04318.63
5.4.380.0270.06318.84
5.4.370.0230.05718.55
5.4.360.0300.06318.73
5.4.350.0500.05018.47
5.4.340.0330.06318.51
5.4.320.0270.06718.58
5.4.310.0400.06018.79
5.4.300.0330.05318.74
5.4.290.0300.05718.74
5.4.280.0300.06318.44
5.4.270.0270.06018.78
5.4.260.0300.06718.69
5.4.250.0370.05318.65
5.4.240.0500.05018.59
5.4.230.0300.05718.49
5.4.220.0300.06018.74
5.4.210.0500.05318.49
5.4.200.0330.06016.70
5.4.190.0400.06318.82
5.4.180.0500.06718.71
5.4.170.0500.06018.60
5.4.160.1200.07718.73
5.4.150.1470.05318.70
5.4.140.0430.04716.21
5.4.130.0400.05016.18
5.4.120.0300.05716.43
5.4.110.2230.05316.21
5.4.100.0370.06716.43
5.4.90.0170.05316.30
5.4.80.0130.04716.31
5.4.70.1500.06016.23
5.4.60.0470.06316.25
5.4.50.0230.05716.30
5.4.40.0170.05716.20
5.4.30.0270.05016.29
5.4.20.0270.05716.40
5.4.10.0400.05316.20
5.4.00.0270.05015.88
5.3.290.0330.07314.64
5.3.280.0400.06714.65
5.3.270.0430.05314.78
5.3.260.0330.05714.82
5.3.250.0400.05014.79
5.3.240.0470.04314.63
5.3.230.0270.05014.63
5.3.220.0200.04714.60
5.3.210.0300.05014.56
5.3.200.0300.05714.59
5.3.190.0470.03314.73
5.3.180.0370.05314.77
5.3.170.0600.05714.62
5.3.160.0300.05314.58
5.3.150.0330.05014.61
5.3.140.0270.06314.77
5.3.130.0330.05014.68
5.3.120.0530.04014.68
5.3.110.0230.06014.61
5.3.100.0270.05714.14
5.3.90.0400.06714.00
5.3.80.0370.06314.06
5.3.70.0400.05014.07
5.3.60.0430.04714.04
5.3.50.0330.05313.98
5.3.40.0300.04714.02
5.3.30.0430.04714.11
5.3.20.0300.05713.73
5.3.10.0330.05313.65
5.3.00.0530.06013.58
5.2.170.0470.04311.34
5.2.160.0300.03711.26
5.2.150.0300.04311.18
5.2.140.0300.04311.20
5.2.130.0230.04711.16
5.2.120.0330.04011.14
5.2.110.0370.05311.21
5.2.100.0370.05011.33
5.2.90.0270.04011.13
5.2.80.0270.04711.20
5.2.70.0400.03311.13
5.2.60.0330.04011.18
5.2.50.0300.04711.14
5.2.40.0230.04711.07
5.2.30.0200.04011.08
5.2.20.0200.05011.06
5.2.10.0200.03710.88
5.2.00.0300.04310.77
5.1.60.0200.04010.20
5.1.50.0170.03310.09
5.1.40.0330.0239.96
5.1.30.0170.04010.43
5.1.20.0270.03310.41
5.1.10.0270.03010.16
5.1.00.0330.03310.08
5.0.50.0100.0308.66
5.0.40.0130.0278.37
5.0.30.0100.0478.21
5.0.20.0100.0308.24
5.0.10.0170.0278.36
5.0.00.0070.0508.27
4.4.90.0170.0175.90
4.4.80.0100.0236.00
4.4.70.0130.0235.96
4.4.60.0170.0175.86
4.4.50.0100.0275.89
4.4.40.0100.0375.89
4.4.30.0130.0235.88
4.4.20.0130.0275.94
4.4.10.0130.0205.93
4.4.00.0030.0405.92
4.3.110.0100.0275.85
4.3.100.0200.0135.80
4.3.90.0100.0205.79
4.3.80.0130.0435.79
4.3.70.0100.0275.84
4.3.60.0070.0235.78
4.3.50.0070.0235.82
4.3.40.0100.0305.78
4.3.30.0070.0235.22
4.3.20.0030.0275.22
4.3.10.0100.0235.22
4.3.00.0130.0236.80

preferences:
148.81 ms | 1398 KiB | 7 Q