3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ private $str=="xuxu"; public function __get(){ return $this::$str; } } $t = new test(); echo $t->$str;

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.340.0170.03719.09
5.4.320.0200.04019.22
5.4.310.0230.03019.22
5.4.300.0130.04019.19
5.4.290.0200.03318.95
5.4.280.0270.03318.98
5.4.270.0170.04319.08
5.4.260.0230.07318.96
5.4.250.0300.07019.16
5.4.240.0230.04318.98
5.4.230.0300.03719.21
5.4.220.0300.06318.96
5.4.210.0330.07018.98
5.4.200.0300.05319.05
5.4.190.0330.06718.86
5.4.180.0230.04718.98
5.4.170.0330.06718.98
5.4.160.0330.06319.20
5.4.150.0300.05719.29
5.4.140.0270.04316.34
5.4.130.0270.06016.33
5.4.120.0170.04316.35
5.4.110.0270.07316.56
5.4.100.0330.04316.38
5.4.90.0230.05016.56
5.4.80.0370.05716.17
5.4.70.0230.04716.34
5.4.60.0270.03716.38
5.4.50.0230.04316.58
5.4.40.0300.04016.53
5.4.30.0270.07016.42
5.4.20.0270.07016.16
5.4.10.0230.04716.52
5.4.00.0300.03015.89
5.3.290.0200.04014.63
5.3.280.0270.06314.49
5.3.270.0230.04714.59
5.3.260.0230.06314.60
5.3.250.0330.05314.82
5.3.240.0270.07014.68
5.3.230.0230.04314.68
5.3.220.0200.05314.55
5.3.210.0330.07014.56
5.3.200.0330.07014.58
5.3.190.0300.06314.47
5.3.180.0270.07314.55
5.3.170.0230.06714.78
5.3.160.0200.04314.56
5.3.150.0230.04014.64
5.3.140.0230.04714.47
5.3.130.0230.04714.59
5.3.120.0300.03714.56
5.3.110.0270.05714.76
5.3.100.0300.07314.08
5.3.90.0400.06314.24
5.3.80.0230.06313.94
5.3.70.0200.04013.92
5.3.60.0330.06014.00
5.3.50.0230.04713.85
5.3.40.0270.07713.87
5.3.30.0270.05713.82
5.3.20.0330.06313.84
5.3.10.0200.06713.63
5.3.00.0230.05013.54
5.2.170.0230.06311.74
5.2.160.0300.05311.74
5.2.150.0270.04311.74
5.2.140.0270.04711.74
5.2.130.0230.05311.74
5.2.120.0270.04711.74
5.2.110.0570.04011.74
5.2.100.0270.02711.74
5.2.90.0230.04711.74
5.2.80.0200.04011.74
5.2.70.0230.06311.74
5.2.60.0230.03711.74
5.2.50.0170.05711.74
5.2.40.0200.04711.74
5.2.30.0270.04011.74
5.2.20.0230.05311.74
5.2.10.0100.05311.74
5.2.00.0130.04311.74
5.1.60.0200.05011.74
5.1.50.0130.05011.74
5.1.40.0200.05011.74
5.1.30.0200.05711.74
5.1.20.0230.04311.74
5.1.10.0200.05311.74
5.1.00.0230.04311.74
5.0.50.0130.03711.74
5.0.40.0130.03711.74
5.0.30.0170.05311.74
5.0.20.0070.04711.74
5.0.10.0100.04311.74
5.0.00.0170.06011.74
4.4.90.0130.02311.74
4.4.80.0130.03011.74
4.4.70.0070.03011.74
4.4.60.0130.02311.74
4.4.50.0170.02711.74
4.4.40.0130.05011.74
4.4.30.0100.03311.74
4.4.20.0100.03011.74
4.4.10.0130.02711.74
4.4.00.0100.05011.74
4.3.110.0100.02011.74
4.3.100.0130.03011.74
4.3.90.0170.03011.74
4.3.80.0030.05311.74
4.3.70.0100.03011.74
4.3.60.0070.03011.74
4.3.50.0100.02011.74
4.3.40.0100.04011.74
4.3.30.0030.02311.74
4.3.20.0030.03711.74
4.3.10.0100.02711.74
4.3.00.0000.02311.74

preferences:
142.8 ms | 1394 KiB | 7 Q