3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myclass{ public $mes="Hello all, I am " public function intro($nam){ return $this->mes.$nam } } $surname= new myclass; echo $surname->intro('Scott');

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.310.0230.03319.26
5.4.300.0200.07019.21
5.4.290.0270.05019.13
5.4.280.0200.07719.22
5.4.270.0230.06718.99
5.4.260.0200.06319.08
5.4.250.0170.06018.86
5.4.240.0330.06719.19
5.4.230.0270.06018.98
5.4.220.0270.07019.14
5.4.210.0170.07018.94
5.4.200.0270.06318.98
5.4.190.0200.07719.21
5.4.180.0270.06718.84
5.4.170.0200.07019.21
5.4.160.0100.04718.96
5.4.150.0200.06319.13
5.4.140.0270.06316.50
5.4.130.0300.04016.37
5.4.120.0270.04016.32
5.4.110.0230.03716.40
5.4.100.0200.05316.55
5.4.90.0170.04316.36
5.4.80.0170.07016.44
5.4.70.0330.05716.34
5.4.60.0270.04716.52
5.4.50.0230.07316.52
5.4.40.0330.06316.23
5.4.30.0270.05316.52
5.4.20.0170.06016.42
5.4.10.0230.06716.16
5.4.00.0270.03715.82
5.3.280.0270.06314.50
5.3.270.0270.06714.52
5.3.260.0200.06714.76
5.3.250.0170.07714.50
5.3.240.0200.06714.69
5.3.230.0200.05314.64
5.3.220.0300.06014.53
5.3.210.0230.03714.57
5.3.200.0200.06714.64
5.3.190.0130.05014.47
5.3.180.0230.04714.71
5.3.170.0230.07314.71
5.3.160.0230.06714.58
5.3.150.0230.04314.71
5.3.140.0300.06014.77
5.3.130.0300.06314.45
5.3.120.0270.07014.55
5.3.110.0130.05014.47
5.3.100.0230.04313.95
5.3.90.0270.06313.98
5.3.80.0230.05014.02
5.3.70.0300.06013.93
5.3.60.0270.06713.92
5.3.50.0300.07013.94
5.3.40.0200.04713.85
5.3.30.0330.03313.80
5.3.20.0200.06013.79
5.3.10.0300.05713.67
5.3.00.0330.06713.56
5.2.170.0200.04711.83
5.2.160.0270.05011.83
5.2.150.0200.02711.83
5.2.140.0200.06011.83
5.2.130.0170.04011.83
5.2.120.0270.05011.83
5.2.110.0130.03011.83
5.2.100.0170.06711.83
5.2.90.0170.04711.83
5.2.80.0170.04311.83
5.2.70.0170.03011.83
5.2.60.0130.03011.83
5.2.50.0170.03011.83
5.2.40.0130.03011.83
5.2.30.0200.05311.83
5.2.20.0130.06011.83
5.2.10.0130.06311.83
5.2.00.0170.03311.83
5.1.60.0130.03011.83
5.1.50.0200.02311.83
5.1.40.0300.02011.83
5.1.30.0130.02311.83
5.1.20.0230.04711.83
5.1.10.0100.02711.83
5.1.00.0170.02711.83
5.0.50.0100.02011.83
5.0.40.0100.04011.83
5.0.30.0100.06011.83
5.0.20.0170.03711.83
5.0.10.0100.04011.83
5.0.00.0070.04311.83
4.4.90.0070.01311.83
4.4.80.0070.01711.83
4.4.70.0070.04011.83
4.4.60.0070.03711.83
4.4.50.0130.02011.83
4.4.40.0130.03311.83
4.4.30.0030.02011.83
4.4.20.0070.01711.83
4.4.10.0070.01711.83
4.4.00.0100.05011.83
4.3.110.0100.03311.83
4.3.100.0030.02711.83
4.3.90.0200.02011.83
4.3.80.0070.04011.83
4.3.70.0100.01711.83
4.3.60.0070.02011.83
4.3.50.0030.02311.83
4.3.40.0070.03011.83
4.3.30.0030.02011.83
4.3.20.0030.04011.83
4.3.10.0070.01711.83
4.3.00.0100.01311.83

preferences:
140.94 ms | 1394 KiB | 7 Q