3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class First { public function showInfo() { echo $this->foo; } } class Second extends First { public $foo = 42; } $obj = new Second(); $obj->showInfo();

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)
8.5.30.0100.00819.52
8.5.20.0130.00517.98
8.5.10.0090.01018.36
8.5.00.0090.01219.67
8.4.180.0120.01021.91
8.4.170.0100.01220.34
8.4.160.0150.00922.10
8.4.150.0070.00516.87
8.4.140.0110.01017.45
8.4.130.0110.01017.77
8.4.120.0130.00620.66
8.4.110.0050.00522.54
8.4.100.0040.00517.98
8.4.90.0130.00720.70
8.4.80.0040.00417.83
8.4.70.0060.01017.71
8.4.60.0070.00217.84
8.4.50.0170.00817.93
8.4.40.0100.01017.52
8.4.30.0130.00618.69
8.4.20.0100.01017.95
8.4.10.0100.01019.44
8.3.300.0090.01120.75
8.3.290.0060.00320.79
8.3.280.0120.00818.22
8.3.270.0100.00916.54
8.3.260.0120.00816.27
8.3.250.0140.00618.71
8.3.240.0130.00616.77
8.3.230.0140.00516.53
8.3.220.0110.00718.86
8.3.210.0090.00916.48
8.3.200.0090.01016.36
8.3.190.0080.01016.44
8.3.180.0100.00816.38
8.3.170.0090.00918.96
8.3.160.0030.00518.25
8.3.150.0040.00416.45
8.3.140.0120.00617.19
8.3.130.0040.00716.51
8.3.120.0130.00620.67
8.3.110.0050.00320.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0100.00018.18
8.3.70.0150.00018.08
8.3.60.0110.01116.63
8.3.50.0110.00716.73
8.3.40.0110.00820.17
8.3.30.0130.00921.61
8.3.20.0150.00424.18
8.3.10.0120.00624.66
8.3.00.0120.00728.09
8.2.300.0140.00522.10
8.2.290.0130.00616.55
8.2.280.0100.00518.50
8.2.270.0080.01117.11
8.2.260.0110.00718.46
8.2.250.0140.00416.58
8.2.240.0040.00717.05
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0040.00418.16
8.2.190.0110.01116.58
8.2.180.0070.01416.63
8.2.170.0160.00618.82
8.2.160.0140.00722.96
8.2.150.0060.01325.66
8.2.140.0050.00524.66
8.2.130.0080.00028.09
8.2.120.0070.00028.09
8.1.340.0140.01117.61
8.1.330.0100.00916.81
8.1.320.0090.00916.10
8.1.310.0060.01318.33
8.1.300.0050.00318.36
8.1.290.0090.00030.84
8.1.280.0110.00325.92
8.1.270.0090.00020.41
8.1.260.0040.00428.09
8.1.250.0070.00028.09

preferences:
55.72 ms | 823 KiB | 5 Q