3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function foobar($a) { } } class bar extends foo { public function foobar($a, $b = null) { } } (new bar)->foobar(1, 2);

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.0040.01116.75
8.3.50.0100.01021.14
8.3.40.0070.01018.78
8.3.30.0100.00318.62
8.3.20.0070.00020.25
8.3.10.0000.00721.85
8.3.00.0040.00423.65
8.2.180.0090.00918.00
8.2.170.0100.00722.96
8.2.160.0100.00320.52
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00019.54
8.2.120.0060.00326.35
8.2.110.0050.00521.03
8.2.100.0070.00317.80
8.2.90.0040.00419.12
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0060.00617.66
8.2.50.0040.00418.07
8.2.40.0030.00620.52
8.2.30.0040.00419.31
8.2.20.0040.00417.54
8.2.10.0000.00917.93
8.2.00.0050.00217.98
8.1.280.0060.00925.92
8.1.270.0060.00323.96
8.1.260.0080.00028.09
8.1.250.0050.00228.09
8.1.240.0060.00322.47
8.1.230.0060.00619.04
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.25
8.1.190.0060.00317.10
8.1.180.0000.00718.10
8.1.170.0030.00518.32
8.1.160.0070.00020.64
8.1.150.0000.00818.72
8.1.140.0000.00819.45
8.1.130.0060.00317.62
8.1.120.0000.00717.34
8.1.110.0080.00017.20
8.1.100.0000.00817.38
8.1.90.0040.00417.23
8.1.80.0040.00417.24
8.1.70.0040.00417.22
8.1.60.0000.00717.45
8.1.50.0000.00817.41
8.1.40.0050.00317.36
8.1.30.0030.00617.51
8.1.20.0050.00217.53
8.1.10.0040.00417.44
8.1.00.0040.00417.42
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00318.26
8.0.270.0000.00717.07
8.0.260.0030.00317.11
8.0.250.0030.00316.78
8.0.240.0080.00016.86
8.0.230.0030.00316.71
8.0.220.0040.00416.80
8.0.210.0000.00716.63
8.0.200.0070.00016.80
8.0.190.0090.00316.73
8.0.180.0030.00316.82
8.0.170.0000.00816.82
8.0.160.0030.00316.71
8.0.150.0000.00816.70
8.0.140.0000.00816.71
8.0.130.0030.00313.21
8.0.120.0050.00316.72
8.0.110.0040.00416.66
8.0.100.0080.00016.81
8.0.90.0040.00416.67
8.0.80.0090.00616.69
8.0.70.0000.00716.65
8.0.60.0030.00316.74
8.0.50.0040.00416.76
8.0.30.0060.00917.24
8.0.20.0130.00617.40
8.0.10.0040.00416.82
8.0.00.0130.00716.67
7.4.330.0000.00516.85
7.4.320.0040.00416.44
7.4.300.0030.00316.43
7.4.290.0040.00416.59
7.4.280.0070.00416.43
7.4.270.0070.00016.35
7.4.260.0030.00316.52
7.4.250.0030.00316.50
7.4.240.0030.00316.50
7.4.230.0030.00316.56
7.4.220.0060.02016.61
7.4.210.0080.01016.50
7.4.200.0030.00316.28
7.4.160.0100.00716.42
7.4.150.0120.00817.40
7.4.140.0120.00817.86
7.4.130.0150.00916.61
7.4.120.0070.01116.47
7.4.110.0140.00316.25
7.4.100.0140.00416.34
7.4.90.0100.01016.47
7.4.80.0160.00619.39
7.4.70.0100.00716.49
7.4.60.0030.01316.35
7.4.50.0030.01216.29
7.4.40.0130.00316.30
7.4.30.0090.00916.39
7.4.00.0150.00015.04
7.3.330.0000.00513.09
7.3.320.0070.00013.10
7.3.310.0030.00316.09
7.3.300.0070.00016.24
7.3.290.0000.00716.25
7.3.280.0090.00716.20
7.3.270.0100.00717.40
7.3.260.0000.01716.23
7.3.250.0110.00616.29
7.3.240.0110.00616.13
7.3.230.0070.01016.39
7.3.210.0000.01716.29
7.3.200.0070.01019.39
7.3.190.0070.01716.25
7.3.180.0130.00316.38
7.3.170.0030.01216.27
7.3.160.0100.01016.17
7.2.330.0060.01016.22
7.2.320.0140.00616.18
7.2.310.0070.01116.43
7.2.300.0060.01216.46
7.2.290.0000.01516.34
7.2.00.0070.00719.20
7.1.100.0040.00718.15
7.1.70.0000.00917.09
7.1.60.0120.01219.18
7.1.50.0030.02116.44
7.1.00.0070.07022.51
7.0.200.0290.00316.40
7.0.60.0070.07321.75
7.0.50.0030.05317.85
7.0.40.0070.08020.23
7.0.30.0230.07320.16
7.0.20.0330.08020.21
7.0.10.0030.09320.06
7.0.00.0070.07720.20
5.6.280.0030.03321.12
5.6.210.0070.03720.65
5.6.200.0000.04718.20
5.6.190.0170.04720.47
5.6.180.0470.04720.41
5.6.170.0330.04320.54
5.6.160.0100.06720.47
5.6.150.0030.08018.18
5.6.140.0030.04318.14
5.6.130.0070.08718.12
5.6.120.0230.06721.02
5.6.110.0070.08020.96
5.6.100.0030.08320.98
5.6.90.0030.06721.00
5.6.80.0030.05720.40
5.5.350.0170.05020.43
5.5.340.0130.05717.95
5.5.330.0070.08720.28
5.5.320.0470.04320.38
5.5.310.0300.07320.31
5.5.300.0030.04018.01
5.5.290.0100.04318.01
5.5.280.0130.08020.75
5.5.270.0070.04320.97
5.5.260.0130.07720.97
5.5.250.0070.06320.66
5.5.240.0170.07320.07

preferences:
60.5 ms | 401 KiB | 5 Q