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.0070.04720.42
5.5.240.0070.06720.18
5.4.400.0270.06318.76
5.4.390.0300.05318.79
5.4.380.0370.05018.63
5.4.370.0430.05318.47
5.4.360.0470.04718.53
5.4.350.0370.05018.73
5.4.340.0370.05018.79
5.4.320.0230.06718.72
5.4.310.0270.05318.77
5.4.300.0400.04018.61
5.4.290.0330.05018.50
5.4.280.0270.05318.53
5.4.270.0370.04318.85
5.4.260.0300.05318.58
5.4.250.0270.05718.78
5.4.240.0430.06718.56
5.4.230.0400.06318.74
5.4.220.0230.06018.71
5.4.210.0330.04718.77
5.4.200.0300.04716.58
5.4.190.0330.04718.75
5.4.180.0370.04318.74
5.4.170.0330.05018.71
5.4.160.0430.05018.45
5.4.150.0370.05018.63
5.4.140.0230.06016.43
5.4.130.0330.04316.42
5.4.120.0300.05016.29
5.4.110.0200.05316.34
5.4.100.0300.05016.19
5.4.90.0230.05316.23
5.4.80.0330.04316.30
5.4.70.0270.05716.42
5.4.60.0200.06016.15
5.4.50.0370.04316.16
5.4.40.0230.06016.30
5.4.30.0270.05716.29
5.4.20.0270.05016.30
5.4.10.0370.04316.39
5.4.00.0430.05315.71
5.3.290.0470.05014.80
5.3.280.0270.06314.57
5.3.270.0230.06014.66
5.3.260.0300.05714.83
5.3.250.0230.05714.65
5.3.240.0170.05714.63
5.3.230.0230.05014.73
5.3.220.0270.05314.57
5.3.210.0400.04314.70
5.3.200.0230.05714.68
5.3.190.0400.05014.69
5.3.180.0230.05014.55
5.3.170.0300.04714.56
5.3.160.0330.04714.54
5.3.150.0270.05314.60
5.3.140.0370.04714.57
5.3.130.0170.06714.67
5.3.120.0370.05014.60
5.3.110.0430.05314.59
5.3.100.0430.06014.14
5.3.90.0300.05014.13
5.3.80.0370.04314.22
5.3.70.0270.05314.23
5.3.60.0200.06314.00
5.3.50.0270.04313.92
5.3.40.0270.05014.11
5.3.30.0370.05313.94
5.3.20.0300.04713.76
5.3.10.0330.04713.82
5.3.00.0400.05013.82
5.2.170.0270.04011.21
5.2.160.0270.04011.18
5.2.150.0230.04711.20
5.2.140.0230.04311.26
5.2.130.0370.04711.32
5.2.120.0330.03711.17
5.2.110.0300.03011.10
5.2.100.0230.04311.15
5.2.90.0300.04711.11
5.2.80.0330.06011.14
5.2.70.0170.05311.20
5.2.60.0200.04311.26
5.2.50.0170.05011.14
5.2.40.0170.04011.09
5.2.30.0200.04311.02
5.2.20.0130.04311.16
5.2.10.0170.04011.08
5.2.00.0170.04310.79
5.1.60.0170.03310.02
5.1.50.0230.0479.98
5.1.40.0230.04710.05
5.1.30.0200.05310.38
5.1.20.0100.04310.37
5.1.10.0130.04310.09
5.1.00.0230.04710.18
5.0.50.0230.0308.58
5.0.40.0030.0338.49
5.0.30.0130.0378.30
5.0.20.0100.0278.38
5.0.10.0130.0238.27
5.0.00.0030.0478.20
4.4.90.0130.0135.94
4.4.80.0130.0205.93
4.4.70.0070.0235.90
4.4.60.0070.0236.00
4.4.50.0170.0175.88
4.4.40.0130.0435.93
4.4.30.0100.0205.89
4.4.20.0070.0235.94
4.4.10.0070.0235.93
4.4.00.0070.0375.91
4.3.110.0030.0275.82
4.3.100.0070.0305.88
4.3.90.0130.0175.84
4.3.80.0130.0335.80
4.3.70.0100.0205.82
4.3.60.0130.0175.87
4.3.50.0100.0205.79
4.3.40.0070.0375.77
4.3.30.0030.0235.22
4.3.20.0000.0275.22
4.3.10.0070.0235.22
4.3.00.0030.0206.80

preferences:
141.93 ms | 1394 KiB | 7 Q