3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dad { public function early() { print __CLASS__ . PHP_EOL; } public function late() { print get_class($this) . PHP_EOL; } public static function earlyStatic() { print get_class(self) . PHP_EOL; } public static function called() { print get_called_class . PHP_EOL; } } class Child extends Dad {} $parent = new Dad(); $child = new Child(); print 'PARENT' . PHP_EOL; $parent->early(); $parent->late(); $parent->earlyStatic(); $parent->called(); print 'CHILD' . PHP_EOL; $child->early(); $child->late(); $child->earlyStatic(); $child->called();

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.3.60.0070.00716.71
8.3.50.0110.01221.97
8.3.40.0120.00618.79
8.3.30.0070.00718.83
8.3.20.0070.00020.16
8.3.10.0040.00421.76
8.3.00.0080.00019.38
8.2.180.0110.00418.26
8.2.170.0120.00322.96
8.2.160.0080.00619.33
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0060.00320.47
8.2.120.0050.00326.35
8.2.110.0040.00420.39
8.2.100.0060.00617.93
8.2.90.0000.00819.14
8.2.80.0040.00417.97
8.2.70.0030.00517.49
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0080.00019.45
8.2.30.0000.00720.61
8.2.20.0080.00017.75
8.2.10.0040.00418.05
8.2.00.0040.00418.05
8.1.280.0110.00725.92
8.1.270.0040.00423.82
8.1.260.0000.00728.09
8.1.250.0060.00328.09
8.1.240.0040.00423.97
8.1.230.0030.00719.18
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.59
8.1.180.0000.00718.10
8.1.170.0000.00818.71
8.1.160.0060.00321.89
8.1.150.0050.00318.78
8.1.140.0030.00619.49
8.1.130.0000.00717.74
8.1.120.0070.00017.54
8.1.110.0040.00417.38
8.1.100.0000.00817.50
8.1.90.0040.00417.45
8.1.80.0030.00517.53
8.1.70.0040.00417.46
8.1.60.0080.00017.67
8.1.50.0050.00317.59
8.1.40.0030.00617.52
8.1.30.0040.00417.64
8.1.20.0090.00017.48
8.1.10.0000.00817.43
8.1.00.0080.00017.57
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0000.00717.37
8.0.260.0030.00317.26
8.0.250.0000.00717.05
8.0.240.0000.00817.07
8.0.230.0000.00716.92
8.0.220.0000.00716.86
8.0.210.0070.00016.94
8.0.200.0000.00617.10
8.0.190.0040.00417.02
8.0.180.0040.00417.01
8.0.170.0000.00817.02
8.0.160.0070.00016.96
8.0.150.0000.00716.81
8.0.140.0040.00416.94
8.0.130.0080.00013.39
8.0.120.0030.00516.93
8.0.110.0050.00316.96
8.0.100.0060.00316.83
8.0.90.0040.00416.74
8.0.80.0060.01316.95
8.0.70.0050.00316.82
8.0.60.0070.00016.91
8.0.50.0040.00416.74
8.0.30.0110.00917.06
8.0.20.0150.00617.40
8.0.10.0000.00717.02
8.0.00.0130.00616.68
7.4.330.0000.00416.70
7.4.320.0070.00016.48
7.4.300.0000.00616.56
7.4.290.0000.00816.54
7.4.280.0000.00916.60
7.4.270.0000.00716.60
7.4.260.0030.00316.59
7.4.250.0000.00816.45
7.4.240.0060.00116.56
7.4.230.0030.00316.61
7.4.220.0060.01316.58
7.4.210.0080.00516.55
7.4.200.0000.00716.68
7.4.160.0060.00916.39
7.4.150.0110.00717.40
7.4.140.0140.01117.86
7.4.130.0090.00816.50
7.4.120.0060.01216.61
7.4.110.0140.00316.48
7.4.100.0180.00616.59
7.4.90.0080.01516.54
7.4.80.0090.00919.39
7.4.70.0110.00716.56
7.4.60.0030.01316.49
7.4.50.0030.01016.60
7.4.40.0080.00816.46
7.4.30.0100.01316.43
7.4.00.0070.00814.79
7.3.330.0060.00413.18
7.3.320.0020.00213.29
7.3.310.0030.00316.26
7.3.300.0030.00316.37
7.3.290.0100.00816.36
7.3.280.0060.00916.35
7.3.270.0000.01717.40
7.3.260.0070.01116.34
7.3.250.0080.01016.33
7.3.240.0140.00616.53
7.3.230.0140.00316.55
7.3.210.0090.00916.38
7.3.200.0080.00816.54
7.3.190.0070.01016.49
7.3.180.0000.01616.35
7.3.170.0040.01816.39
7.3.160.0170.00016.49
7.2.330.0060.01216.70
7.2.320.0090.00916.74
7.2.310.0080.00916.61
7.2.300.0040.01416.53
7.2.290.0130.01016.55
7.2.60.0030.00917.01
7.1.200.0000.01115.52
7.1.70.0000.00816.81
7.1.60.0110.01519.36
7.1.50.0090.00616.94
7.1.00.0030.07722.47
7.0.200.0000.00816.79
7.0.60.0270.05020.02
7.0.50.0130.06017.88
7.0.40.0100.04020.04
7.0.30.0100.07020.23
7.0.20.0230.07720.19
7.0.10.0000.05020.19
7.0.00.0130.06720.22
5.6.280.0000.03320.87
5.6.210.0130.07720.55
5.6.200.0000.05018.19
5.6.190.0100.08020.48
5.6.180.0600.06320.41
5.6.170.0230.07720.62
5.6.160.0070.04320.54
5.6.150.0030.07718.22
5.6.140.0170.07018.15
5.6.130.0030.08318.14
5.6.120.0100.07321.13
5.6.110.0070.07320.99
5.6.100.0100.08021.01
5.6.90.0000.04721.00
5.6.80.0100.08320.53
5.5.350.0200.07720.45
5.5.340.0130.06317.95
5.5.330.0070.07320.45
5.5.320.0070.07020.33
5.5.310.0330.06020.41
5.5.300.0030.07018.04
5.5.290.0000.06717.96
5.5.280.0100.07720.77
5.5.270.0170.07320.80
5.5.260.0030.08720.97
5.5.250.0100.07320.68
5.5.240.0130.03720.03

preferences:
38.22 ms | 401 KiB | 5 Q