3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function test(stdClass $thing) { print($thing); } } class ChildClass extends ParentClass { public function test($thing = null) { print($thing); } } $child = new ChildClass(); $child->test(new stdClass());

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.0120.00918.55
8.3.50.0110.00416.59
8.3.40.0120.00318.96
8.3.30.0120.00918.67
8.3.20.0040.00420.09
8.3.10.0040.00421.95
8.3.00.0040.00423.65
8.2.180.0070.01416.63
8.2.170.0070.00722.96
8.2.160.0100.00320.40
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00020.69
8.2.120.0080.00026.35
8.2.110.0090.00020.43
8.2.100.0040.00818.05
8.2.90.0040.00419.03
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0030.00518.03
8.2.50.0040.00418.09
8.2.40.0030.00520.60
8.2.30.0030.00619.44
8.2.20.0040.00417.77
8.2.10.0000.00718.07
8.2.00.0050.00318.11
8.1.270.0060.00322.19
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0040.00423.97
8.1.230.0040.00717.83
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0000.00817.13
8.1.180.0000.00918.10
8.1.170.0030.00618.53
8.1.160.0040.00420.69
8.1.150.0000.00718.95
8.1.140.0080.00019.55
8.1.130.0000.00717.68
8.1.120.0070.00417.29
8.1.110.0070.00017.37
8.1.100.0000.00717.45
8.1.90.0070.00417.28
8.1.80.0000.00717.45
8.1.70.0030.00317.36
8.1.60.0000.00817.54
8.1.50.0050.00317.52
8.1.40.0070.00017.43
8.1.30.0040.00417.66
8.1.20.0000.00817.50
8.1.10.0040.00417.46
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0080.00016.88
8.0.280.0000.00718.46
8.0.270.0000.00717.16
8.0.260.0040.00417.25
8.0.250.0040.00417.02
8.0.240.0030.00317.00
8.0.230.0000.00716.91
8.0.220.0000.00716.80
8.0.210.0030.00316.94
8.0.200.0030.00316.84
8.0.190.0030.00616.99
8.0.180.0040.00416.94
8.0.170.0050.00516.91
8.0.160.0070.00016.97
8.0.150.0000.00716.75
8.0.140.0040.00416.84
8.0.130.0060.00313.40
8.0.120.0040.00416.75
8.0.110.0040.00416.89
8.0.100.0000.00716.83
8.0.90.0040.00416.76
8.0.80.0080.00816.85
8.0.70.0050.00216.86
8.0.60.0000.00716.80
8.0.50.0040.00416.68
8.0.30.0140.00516.84
8.0.20.0080.01217.40
8.0.10.0040.00416.97
8.0.00.0100.00716.68
7.4.330.0050.00016.83
7.4.320.0000.00616.45
7.4.300.0040.00416.41
7.4.290.0030.00316.49
7.4.280.0100.00216.56
7.4.270.0030.00316.64
7.4.260.0000.00716.50
7.4.250.0030.00316.45
7.4.240.0000.00716.66
7.4.230.0000.00716.38
7.4.220.0080.00816.46
7.4.210.0110.00916.71
7.4.200.0050.00216.34
7.4.160.0080.00816.36
7.4.150.0090.00917.40
7.4.140.0080.01517.86
7.4.130.0090.00916.49
7.4.120.0070.01216.60
7.4.110.0040.01416.45
7.4.100.0060.01216.47
7.4.90.0160.00616.57
7.4.80.0080.00919.39
7.4.70.0090.00816.52
7.4.60.0030.01416.55
7.4.50.0130.00316.59
7.4.40.0090.00616.39
7.4.30.0030.01616.50
7.4.00.0050.01415.03
7.3.330.0020.00513.26
7.3.320.0030.00313.37
7.3.310.0000.00716.11
7.3.300.0000.00716.21
7.3.290.0060.01016.27
7.3.280.0070.01216.31
7.3.270.0140.01517.40
7.3.260.0070.01416.27
7.3.250.0110.00716.33
7.3.240.0090.00916.40
7.3.230.0090.00916.39
7.3.210.0150.00316.50
7.3.200.0100.00719.39
7.3.190.0100.01216.42
7.3.180.0130.00316.34
7.3.170.0000.01616.36
7.3.160.0110.00816.63
7.3.120.0100.00814.65
7.3.110.0050.01114.70
7.3.100.0050.01014.60
7.3.90.0080.00715.03
7.3.80.0070.00514.83
7.3.70.0080.00514.79
7.3.60.0040.00914.85
7.3.50.0050.00914.75
7.3.40.0080.00614.75
7.3.30.0130.00214.76
7.3.20.0030.01316.75
7.3.10.0100.00416.48
7.3.00.0050.00716.63
7.2.330.0090.00916.32
7.2.320.0000.01916.40
7.2.310.0060.00916.54
7.2.300.0030.01316.54
7.2.290.0110.00616.29
7.2.250.0000.01214.96
7.2.240.0050.01314.87
7.2.230.0030.01314.85
7.2.220.0080.00515.03
7.2.210.0100.00315.03
7.2.200.0060.00915.02
7.2.190.0030.01114.94
7.2.180.0030.01114.97
7.2.170.0140.00314.85
7.2.160.0070.01114.82
7.2.150.0100.00716.81
7.2.140.0080.00316.92
7.2.130.0090.00716.82
7.2.120.0030.01016.76
7.2.110.0030.00916.97
7.2.100.0080.00717.00
7.2.90.0080.00817.05
7.2.80.0050.00816.89
7.2.70.0080.00817.08
7.2.60.0050.00816.94
7.2.50.0030.01116.73
7.2.40.0080.00816.79
7.2.30.0060.00816.99
7.2.20.0050.00816.82
7.2.10.0040.01116.91
7.2.00.0070.00717.61
7.1.330.0020.01115.60
7.1.320.0080.00415.80
7.1.310.0060.00815.80
7.1.300.0080.00615.72
7.1.290.0050.01215.78
7.1.280.0060.01115.79
7.1.270.0050.00915.49
7.1.260.0050.00615.76
7.1.250.0040.01115.67
7.1.200.0030.00615.86
7.1.100.0030.00617.77
7.1.70.0000.00816.89
7.1.60.0100.01319.40
7.1.50.0030.00916.85
7.1.00.0070.07322.35
7.0.200.0860.00614.79
7.0.60.0330.06019.79
7.0.50.0070.08017.88
7.0.40.0100.06320.11
7.0.30.0270.04020.06
7.0.20.0400.06320.23
7.0.10.0130.08020.07
7.0.00.0170.07020.05
5.6.280.0000.07320.86
5.6.210.0130.06720.55
5.6.200.0100.05718.15
5.6.190.0070.08320.39
5.6.180.0270.03320.50
5.6.170.0230.09020.53
5.6.160.0100.08020.52
5.6.150.0070.06718.18
5.6.140.0070.08318.16
5.6.130.0200.07718.21
5.6.120.0000.05720.90
5.6.110.0030.04020.98
5.6.100.0130.04720.96
5.6.90.0100.08021.08
5.6.80.0100.07720.48
5.5.350.0170.06720.48
5.5.340.0070.06318.03
5.5.330.0070.06320.38
5.5.320.0230.04020.31
5.5.310.0200.04720.24
5.5.300.0070.06717.98
5.5.290.0100.07717.99
5.5.280.0070.04320.77
5.5.270.0070.06720.76
5.5.260.0070.09020.96
5.5.250.0070.08720.55
5.5.240.4300.04020.18

preferences:
50.56 ms | 400 KiB | 5 Q