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.0030.04319.25
5.4.300.0100.05318.94
5.4.290.0030.06719.14
5.4.280.0030.07719.09
5.4.270.0030.03719.23
5.4.260.0030.03719.31
5.4.250.0100.06719.19
5.4.240.0070.07019.15
5.4.230.0070.05019.11
5.4.220.0070.07319.14
5.4.210.0030.07719.24
5.4.200.0070.06018.87
5.4.190.0070.06318.96
5.4.180.0000.04319.05
5.4.170.0070.07718.97
5.4.160.0030.07018.93
5.4.150.0030.07318.92
5.4.140.0070.04716.46
5.4.130.0070.07016.41
5.4.120.0000.05716.26
5.4.110.0000.07716.27
5.4.100.0100.05316.26
5.4.90.0030.07016.55
5.4.80.0000.06316.20
5.4.70.0230.02716.52
5.4.60.0070.06716.35
5.4.50.0070.06716.53
5.4.40.0130.06016.38
5.4.30.0070.05716.53
5.4.20.0030.06016.53
5.4.10.0100.06316.53
5.4.00.0030.06315.96
5.3.280.0000.08014.81
5.3.270.0070.07314.51
5.3.260.0100.07314.51
5.3.250.0000.06314.59
5.3.240.0030.07714.67
5.3.230.0070.05714.59
5.3.220.0030.07714.46
5.3.210.0000.07014.46
5.3.200.0000.07314.61
5.3.190.0000.05014.72
5.3.180.0070.07014.67
5.3.170.0030.07314.48
5.3.160.0000.08014.67
5.3.150.0030.04314.55
5.3.140.0000.07714.47
5.3.130.0030.04314.70
5.3.120.0030.06014.76
5.3.110.0000.08014.44
5.3.100.0030.04714.15
5.3.90.0000.03713.99
5.3.80.0100.04014.05
5.3.70.0000.06013.99
5.3.60.0070.06013.91
5.3.50.0030.05014.06
5.3.40.0030.07013.95
5.3.30.0000.07313.81
5.3.20.0200.03713.77
5.3.10.0000.04713.56
5.3.00.0000.03713.56
5.2.170.0000.05711.93
5.2.160.0030.05711.93
5.2.150.0000.06711.93
5.2.140.0000.06311.93
5.2.130.0030.05711.93
5.2.120.0030.05311.93
5.2.110.0030.03011.93
5.2.100.0000.04011.93
5.2.90.0030.06011.93
5.2.80.0100.03011.93
5.2.70.0100.03711.93
5.2.60.0000.06311.93
5.2.50.0030.06011.93
5.2.40.0030.05011.93
5.2.30.0030.03711.93
5.2.20.0070.05711.93
5.2.10.0030.03711.93
5.2.00.0030.05711.93
5.1.60.0000.04711.93
5.1.50.0030.04011.93
5.1.40.0030.05311.93
5.1.30.0000.04711.93
5.1.20.0070.03711.93
5.1.10.0030.05711.93
5.1.00.0000.04711.93
5.0.50.0030.04011.93
5.0.40.0070.04311.93
5.0.30.0030.05711.93
5.0.20.0000.03711.93
5.0.10.0000.04711.93
5.0.00.0030.06011.93
4.4.90.0070.01711.93
4.4.80.0030.02311.93
4.4.70.0070.03311.93
4.4.60.0030.03311.93
4.4.50.0000.03711.93
4.4.40.0030.03311.93
4.4.30.0000.03311.93
4.4.20.0000.02011.93
4.4.10.0030.02711.93
4.4.00.0000.03011.93
4.3.110.0000.03311.93
4.3.100.0030.03011.93
4.3.90.0030.01711.93
4.3.80.0070.04711.93
4.3.70.0000.03711.93
4.3.60.0030.02311.93
4.3.50.0000.03711.93
4.3.40.0100.04711.93
4.3.30.0030.03311.93
4.3.20.0000.03711.93
4.3.10.0030.03711.93
4.3.00.0000.03011.93

preferences:
138.32 ms | 1386 KiB | 7 Q