3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private function do_something (bool $str) { echo "private function"; } public function call_something(foo $obj) { $obj->do_something(true); } } class bar extends foo { public function do_something (int $value) { echo "subclass"; } } $a = new bar(); $b = new bar(); $b->call_something($a);

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.0110.00716.47
8.3.50.0110.00922.04
8.3.40.0060.01218.54
8.3.30.0070.00718.67
8.3.20.0080.00022.04
8.3.10.0030.00621.91
8.3.00.0000.00919.79
8.2.180.0070.00716.63
8.2.170.0080.01222.96
8.2.160.0000.01420.46
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0060.00319.27
8.2.120.0110.00726.35
8.2.110.0030.00622.22
8.2.100.0100.00617.93
8.2.90.0000.00819.18
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0040.00422.27
8.2.30.0040.00420.62
8.2.20.0000.00717.55
8.2.10.0000.00818.05
8.2.00.0040.00417.90
8.1.280.0150.00625.92
8.1.270.0110.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.76
8.1.230.0090.00317.82
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00317.23
8.1.190.0030.00517.00
8.1.180.0000.00818.10
8.1.170.0050.00318.53
8.1.160.0040.00420.61
8.1.150.0000.00718.78
8.1.140.0030.00619.50
8.1.130.0000.00717.59
8.1.120.0000.00717.39
8.1.110.0000.00717.33
8.1.100.0000.00817.40
8.1.90.0000.00717.41
8.1.80.0040.00417.44
8.1.70.0000.00917.23
8.1.60.0070.00017.48
8.1.50.0030.00517.44
8.1.40.0030.00517.52
8.1.30.0050.00317.64
8.1.20.0040.00417.63
8.1.10.0000.00717.62
8.1.00.0050.00317.39
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.40
8.0.270.0000.00717.25
8.0.260.0030.00317.21
8.0.250.0000.00616.81
8.0.240.0000.00716.98
8.0.230.0050.00516.84
8.0.220.0000.00716.76
8.0.210.0070.00016.90
8.0.200.0000.00716.91
8.0.190.0030.00916.81
8.0.180.0000.00716.79
8.0.170.0040.00416.83
8.0.160.0050.00216.77
8.0.150.0000.00816.70
8.0.140.0070.00016.74
8.0.130.0030.00313.26
8.0.120.0000.00816.80
8.0.110.0040.00316.82
8.0.100.0000.00716.86
8.0.90.0040.00416.74
8.0.80.0080.00816.85
8.0.70.0030.00516.72
8.0.60.0000.00716.75
8.0.50.0050.00216.93
8.0.30.0120.01017.00
8.0.20.0110.00717.40
8.0.10.0070.00017.00
8.0.00.0110.00616.66
7.4.330.0030.00316.73
7.4.320.0030.00316.51
7.4.300.0030.00316.49
7.4.290.0050.00216.58
7.4.280.0040.00416.47
7.4.270.0000.00716.50
7.4.260.0030.00316.58
7.4.250.0080.00016.58
7.4.240.0040.00416.44
7.4.230.0030.00316.69
7.4.220.0070.01116.53
7.4.210.0140.00316.61
7.4.200.0030.00316.38
7.4.160.0060.01116.55
7.4.150.0100.01017.40
7.4.140.0060.01117.86
7.4.130.0180.00716.78
7.4.120.0110.00616.54
7.4.110.0060.01216.59
7.4.100.0100.00616.52
7.4.90.0070.01116.35
7.4.80.0090.00919.39
7.4.70.0160.00316.46
7.4.60.0070.01016.49
7.4.50.0000.01916.58
7.4.40.0100.00616.44
7.4.30.0130.00316.55
7.4.00.0070.01014.93
7.3.330.0050.00013.21
7.3.320.0050.00013.20
7.3.310.0000.00716.27
7.3.300.0030.00316.19
7.3.290.0070.00816.21
7.3.280.0060.01316.24
7.3.270.0100.00717.40
7.3.260.0090.00816.37
7.3.240.0100.00616.31
7.3.230.0070.01116.39
7.3.210.0100.00716.30
7.3.200.0140.00716.11
7.3.190.0090.01316.21
7.3.180.0100.01016.20
7.3.170.0100.00716.27
7.3.160.0080.00816.24
7.3.10.0090.00316.50
7.3.00.0040.01216.71
7.2.330.0150.00616.60
7.2.320.0030.01616.57
7.2.310.0100.01416.61
7.2.300.0130.00916.50
7.2.290.0120.00616.77
7.2.130.0070.00716.86
7.2.120.0060.00616.83
7.2.110.0070.00716.76
7.2.100.0090.00416.84
7.2.90.0040.01216.82
7.2.80.0040.00717.04
7.2.70.0140.00016.94
7.2.60.0060.01016.78
7.2.50.0030.01417.09
7.2.40.0150.00316.95
7.2.30.0200.00017.01
7.2.20.0140.00716.91
7.2.10.0160.00316.82
7.2.00.0160.00917.02
7.1.250.0090.00315.73
7.1.200.0030.01015.82
7.1.100.0060.00618.23
7.1.70.0000.01216.80
7.1.60.0070.01719.44
7.1.50.0080.01516.84
7.1.00.0070.07322.57
7.0.200.0060.00316.76
7.0.60.0100.06020.04
7.0.50.0100.08317.85
7.0.40.0070.06720.40
7.0.30.0570.04720.16
7.0.20.0400.07720.26
7.0.10.0130.08320.06
7.0.00.0030.09020.24
5.6.280.0000.05720.82
5.6.210.0130.07320.53
5.6.200.0030.04718.13
5.6.190.0070.08020.47
5.6.180.0200.08020.77
5.6.170.0300.08020.55
5.6.160.0070.07720.44
5.6.150.0030.08318.18
5.6.140.0000.04318.21
5.6.130.0030.04318.17
5.6.120.0070.07020.91
5.6.110.0030.08721.02
5.6.100.0070.07320.98
5.6.90.0070.08721.02
5.6.80.0100.06320.43
5.5.350.0100.05320.48
5.5.340.0000.04017.93
5.5.330.0070.06320.19
5.5.320.0200.05720.35
5.5.310.0230.04020.51
5.5.300.0070.08318.01
5.5.290.0130.04317.98
5.5.280.0230.04020.91
5.5.270.0100.08020.73
5.5.260.0100.08020.77
5.5.250.0200.07320.59
5.5.240.2830.03320.12

preferences:
48.14 ms | 401 KiB | 5 Q