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)->foo();

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.40.0110.00718.58
8.3.30.0110.00318.66
8.3.20.0000.00820.04
8.3.10.0040.00421.89
8.3.00.0100.00723.69
8.2.170.0100.01022.96
8.2.160.0080.00620.53
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00419.70
8.2.120.0000.00726.35
8.2.110.0030.00619.14
8.2.100.0080.00417.84
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00517.88
8.2.50.0040.00418.07
8.2.40.0030.00620.66
8.2.30.0030.00319.46
8.2.20.0000.00817.73
8.2.10.0000.00818.04
8.2.00.0070.00018.04
8.1.270.0050.00323.88
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0030.00723.63
8.1.230.0090.00322.68
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00817.00
8.1.180.0020.00518.10
8.1.170.0040.00418.58
8.1.160.0040.00420.50
8.1.150.0000.00718.75
8.1.140.0040.00419.39
8.1.130.0000.00717.57
8.1.120.0000.00717.39
8.1.110.0040.00417.30
8.1.100.0000.00817.32
8.1.90.0040.00417.31
8.1.80.0070.00017.36
8.1.70.0000.00717.21
8.1.60.0000.00717.45
8.1.50.0080.00017.35
8.1.40.0040.00417.47
8.1.30.0040.00417.48
8.1.20.0040.00417.54
8.1.10.0040.00417.40
8.1.00.0000.00817.45
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.42
8.0.270.0070.00017.20
8.0.260.0000.00617.08
8.0.250.0050.00316.94
8.0.240.0040.00416.98
8.0.230.0030.00316.90
8.0.220.0000.00716.76
8.0.210.0040.00416.78
8.0.200.0030.00316.90
8.0.190.0000.00816.90
8.0.180.0040.00416.90
8.0.170.0030.00516.82
8.0.160.0040.00416.80
8.0.150.0040.00416.91
8.0.140.0030.00316.74
8.0.130.0050.00013.30
8.0.120.0000.00816.85
8.0.110.0040.00416.91
8.0.100.0000.00816.75
8.0.90.0040.00416.92
8.0.80.0060.00916.86
8.0.70.0020.00516.84
8.0.60.0030.00316.68
8.0.50.0000.00716.67
8.0.30.0100.00916.88
8.0.20.0120.00917.40
8.0.10.0040.00416.74
8.0.00.0110.00816.69
7.4.330.0000.00516.67
7.4.320.0030.00316.29
7.4.300.0000.00616.57
7.4.290.0000.00616.41
7.4.280.0080.00316.43
7.4.270.0000.00716.38
7.4.260.0050.00216.43
7.4.250.0030.00316.44
7.4.240.0040.00416.48
7.4.230.0040.00416.31
7.4.220.0110.00716.54
7.4.210.0100.00816.48
7.4.200.0030.00316.62
7.4.160.0100.00716.34
7.4.150.0030.01517.40
7.4.140.0050.01517.86
7.4.130.0060.01416.48
7.4.120.0080.01016.51
7.4.110.0100.00716.43
7.4.100.0110.00716.38
7.4.90.0070.01016.59
7.4.80.0090.00919.39
7.4.70.0230.00016.43
7.4.60.0050.01116.50
7.4.50.0050.01016.66
7.4.40.0030.01316.36
7.4.30.0090.00916.29
7.4.00.0060.01114.77
7.3.330.0000.00513.13
7.3.320.0030.00313.31
7.3.310.0070.00016.27
7.3.300.0070.00016.15
7.3.290.0000.00716.24
7.3.280.0150.00416.27
7.3.270.0060.01317.40
7.3.260.0060.01016.35
7.3.250.0110.00816.36
7.3.240.0100.01116.41
7.3.230.0060.01016.55
7.3.210.0120.00916.48
7.3.200.0060.01219.39
7.3.190.0110.01316.58
7.3.180.0100.00616.53
7.3.170.0180.00316.45
7.3.160.0160.00016.42
7.3.120.0110.00714.91
7.3.110.0130.00014.95
7.3.100.0000.01414.80
7.3.90.0090.00914.96
7.3.80.0060.00914.72
7.3.70.0120.00314.86
7.3.60.0030.00814.89
7.3.50.0130.00314.89
7.3.40.0070.01114.90
7.3.30.0030.01314.93
7.3.20.0060.00816.46
7.3.10.0030.00916.43
7.3.00.0090.00616.43
7.2.330.0140.00416.50
7.2.320.0070.01016.59
7.2.310.0140.00416.73
7.2.300.0100.00716.38
7.2.290.0090.00916.45
7.2.250.0140.00314.82
7.2.240.0070.01415.02
7.2.230.0090.00614.81
7.2.220.0000.01815.05
7.2.210.0040.00714.78
7.2.200.0070.00714.68
7.2.190.0040.00714.94
7.2.180.0030.01314.75
7.2.170.0060.00914.98
7.2.60.0190.00416.29
7.2.00.0030.00719.33
7.1.330.0060.00915.58
7.1.320.0100.00315.52
7.1.310.0070.00715.79
7.1.300.0040.01115.37
7.1.290.0100.00715.61
7.1.280.0130.00315.55
7.1.270.0070.00715.59
7.1.260.0070.00715.67
7.1.200.0040.00715.37
7.1.100.0040.01117.80
7.1.70.0030.00717.09
7.1.60.0030.02119.18
7.1.50.0040.01116.83
7.1.00.0030.07722.45
7.0.200.0310.00716.75
7.0.60.0000.08321.87
7.0.50.0130.07017.88
7.0.40.0100.05720.26
7.0.30.0270.06720.26
7.0.20.0270.08020.33
7.0.10.0070.07720.16
7.0.00.0070.09020.09
5.6.280.0030.06720.98
5.6.210.0070.04020.73
5.6.200.0100.07018.25
5.6.190.0030.06320.49
5.6.180.0470.08020.48
5.6.170.0300.07720.52
5.6.160.0100.08720.44
5.6.150.0170.07018.27
5.6.140.0100.04318.17
5.6.130.0070.08018.13
5.6.120.0100.07721.02
5.6.110.0100.07321.01
5.6.100.0130.08020.99
5.6.90.0200.08021.10
5.6.80.0200.07020.40
5.5.350.0200.07020.31
5.5.340.0070.04317.97
5.5.330.0130.08020.27
5.5.320.0230.04020.31
5.5.310.0300.07720.35
5.5.300.0030.04017.97
5.5.290.0070.06718.02
5.5.280.0100.08320.80
5.5.270.0030.06020.76
5.5.260.0070.08320.77
5.5.250.0200.07020.78
5.5.240.0270.07020.27

preferences:
51.39 ms | 400 KiB | 5 Q