3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{ public function __construct(){ echo 'sub_class'; } } class b{ public function __construct(){ $this = new a(); } } $v = new b(); echo get_class($v);

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.170.0070.05719.23
5.4.160.0030.06718.83
5.4.150.0130.07018.90
5.4.140.0100.05016.35
5.4.130.0070.07016.31
5.4.120.0100.06016.42
5.4.110.0130.06316.55
5.4.100.0030.04716.46
5.4.90.0070.05716.35
5.4.80.0030.06316.49
5.4.70.0030.07016.45
5.4.60.0000.05316.39
5.4.50.0070.06316.27
5.4.40.0070.05716.25
5.4.30.0070.03716.63
5.4.20.0030.06016.25
5.4.10.0130.03316.42
5.4.00.0030.03715.85
5.3.270.0070.06014.61
5.3.260.0070.05314.66
5.3.250.0100.06014.53
5.3.240.0030.08014.65
5.3.230.0030.05314.76
5.3.220.0130.06314.61
5.3.210.0130.04714.57
5.3.200.0000.05014.60
5.3.190.0000.08314.57
5.3.180.0100.07014.59
5.3.170.0100.06314.60
5.3.160.0070.05014.62
5.3.150.0030.05714.58
5.3.140.0070.05714.59
5.3.130.0070.03714.56
5.3.120.0070.08014.61
5.3.110.0030.05314.62
5.3.100.0000.04014.04
5.3.90.0070.06314.05
5.3.80.0130.03313.97
5.3.70.0130.03014.05
5.3.60.0070.03313.95
5.3.50.0030.04714.09
5.3.40.0130.05014.02
5.3.30.0030.07313.83
5.3.20.0200.06013.75
5.3.10.0100.05713.57
5.3.00.0170.03313.70

preferences:
137.49 ms | 1386 KiB | 7 Q