3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { public function test($foo = true, $bar = false); } class bar implements foo { public function test($baz = false, $faz = true) { echo 'test'; } } $a = new bar(); $a->test('lol');

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.0140.00718.32
8.3.50.0090.01322.12
8.3.40.0120.00318.73
8.3.30.0100.00718.90
8.3.20.0000.00820.25
8.3.10.0060.00320.36
8.3.00.0000.00817.59
8.2.180.0120.00916.32
8.2.170.0100.00322.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0000.00726.16
8.2.120.0000.00722.10
8.2.110.0070.00320.58
8.2.100.0040.00818.03
8.2.90.0000.00819.15
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0030.00717.93
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0000.00819.35
8.2.20.0080.00017.55
8.2.10.0070.00018.11
8.2.00.0070.00017.68
8.1.280.0070.00725.92
8.1.270.0060.00323.79
8.1.260.0030.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00522.24
8.1.230.0070.00419.04
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0030.00517.23
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0040.00422.06
8.1.150.0040.00418.89
8.1.140.0040.00417.41
8.1.130.0000.00817.80
8.1.120.0000.00717.43
8.1.110.0000.00817.49
8.1.100.0040.00417.35
8.1.90.0000.00817.41
8.1.80.0070.00017.46
8.1.70.0000.00717.30
8.1.60.0000.00817.59
8.1.50.0000.00717.50
8.1.40.0040.00417.56
8.1.30.0040.00417.54
8.1.20.0070.00017.60
8.1.10.0050.00317.57
8.1.00.0000.00817.55
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0000.00717.25
8.0.260.0030.00317.26
8.0.250.0040.00416.97
8.0.240.0040.00416.89
8.0.230.0030.00316.91
8.0.220.0030.00316.89
8.0.210.0020.00516.91
8.0.200.0030.00516.95
8.0.190.0030.00516.82
8.0.180.0040.00416.93
8.0.170.0070.00016.88
8.0.160.0000.00716.91
8.0.150.0070.00016.88
8.0.140.0030.00616.85
8.0.130.0030.00313.32
8.0.120.0090.00016.86
8.0.110.0030.00616.84
8.0.100.0050.00216.92
8.0.90.0000.00816.69
8.0.80.0040.01116.77
8.0.70.0040.00416.73
8.0.60.0040.00416.75
8.0.50.0000.00716.74
8.0.30.0080.01117.09
8.0.20.0120.00817.40
8.0.10.0000.00716.91
8.0.00.0090.01116.77
7.4.330.0000.00515.20
7.4.320.0000.00616.61
7.4.300.0030.00316.51
7.4.290.0000.00916.39
7.4.280.0050.00316.46
7.4.270.0000.00616.61
7.4.260.0000.00716.59
7.4.250.0040.00416.45
7.4.240.0030.00316.54
7.4.230.0050.00216.42
7.4.220.0070.01916.45
7.4.210.0040.01216.56
7.4.200.0030.00316.71
7.4.160.0080.01216.32
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0130.00616.59
7.4.120.0060.01116.40
7.4.110.0070.01016.39
7.4.100.0030.01616.43
7.4.90.0100.00716.59
7.4.80.0100.00719.03
7.4.70.0100.00716.42
7.4.60.0150.00616.42
7.4.50.0040.00416.33
7.4.40.0070.01016.44
7.4.30.0060.01016.40
7.4.00.0090.00614.93
7.3.330.0040.00413.25
7.3.320.0060.00013.20
7.3.310.0040.00416.23
7.3.300.0000.00616.24
7.3.290.0070.01016.23
7.3.280.0070.01116.23
7.3.270.0100.00717.40
7.3.260.0090.00616.48
7.3.250.0060.01116.39
7.3.240.0070.01016.28
7.3.230.0090.00916.46
7.3.210.0100.00716.27
7.3.200.0100.00719.39
7.3.190.0060.01216.57
7.3.180.0130.00416.46
7.3.170.0150.00816.27
7.3.160.0090.00616.40
7.3.120.0100.00714.86
7.3.110.0070.01015.03
7.3.100.0070.00714.70
7.3.90.0100.00614.77
7.3.80.0030.00614.67
7.3.70.0140.00314.81
7.3.60.0060.00914.83
7.3.50.0000.01514.52
7.3.40.0120.00414.65
7.3.30.0070.00714.47
7.3.20.0100.00316.73
7.3.10.0050.01016.67
7.3.00.0130.00616.46
7.2.330.0160.00616.41
7.2.320.0110.00916.69
7.2.310.0140.01816.67
7.2.300.0100.00716.41
7.2.290.0160.00016.35
7.2.250.0080.00414.77
7.2.240.0070.01414.97
7.2.230.0040.01414.93
7.2.220.0030.01214.87
7.2.210.0130.00314.84
7.2.200.0090.00914.90
7.2.190.0030.01314.98
7.2.180.0060.00914.98
7.2.170.0030.01315.00
7.2.130.0100.00716.71
7.2.120.0070.00316.61
7.2.110.0090.00916.68
7.2.100.0160.00316.64
7.2.90.0000.01816.70
7.2.80.0090.00616.90
7.2.70.0080.00016.79
7.2.60.0070.00916.73
7.2.50.0060.00816.75
7.2.40.0060.00916.77
7.2.30.0040.00816.89
7.2.20.0070.01316.75
7.2.10.0180.00416.93
7.2.00.0030.01018.10
7.1.330.0110.00415.71
7.1.320.0060.00615.64
7.1.310.0000.01915.70
7.1.300.0000.01615.61
7.1.290.0000.01715.75
7.1.280.0070.01015.69
7.1.270.0110.00015.39
7.1.260.0060.00615.52
7.1.250.0070.00515.74
7.1.200.0030.01115.33
7.1.100.0090.00018.06
7.1.70.0000.00716.97
7.1.60.0070.01819.32
7.1.50.0070.01316.62
7.1.00.0030.07722.28
7.0.200.0070.00316.72
7.0.140.0070.07022.09
7.0.60.0170.07319.92
7.0.50.0100.07017.84
7.0.40.0100.07720.04
7.0.30.0200.05720.20
7.0.20.0130.04320.23
7.0.10.0030.06020.20
7.0.00.0100.03320.05
5.6.280.0100.08320.99
5.6.210.0070.08020.71
5.6.200.0030.05318.13
5.6.190.0030.04720.50
5.6.180.0500.07020.55
5.6.170.0330.07720.47
5.6.160.0100.08320.54
5.6.150.0130.07318.25
5.6.140.0170.03018.21
5.6.130.0030.08318.26
5.6.120.0030.04320.94
5.6.110.0070.04021.14
5.6.100.0100.07320.98
5.6.90.0170.07321.00
5.6.80.0030.07320.48
5.5.350.0200.08320.36
5.5.340.0070.08018.03
5.5.330.0170.07720.39
5.5.320.0470.06720.35
5.5.310.0170.06020.37
5.5.300.0030.07718.07
5.5.290.0030.04717.91
5.5.280.0030.08720.98
5.5.270.0030.06020.65
5.5.260.0070.07320.76
5.5.250.0070.07320.66
5.5.240.0130.08720.13
5.4.450.0170.07319.49
5.4.440.0200.04019.27
5.4.430.0130.08319.63
5.4.420.0200.06719.27
5.4.410.0230.04319.32
5.4.400.0170.04719.20
5.4.390.0200.06719.16
5.4.380.0230.06719.15
5.4.370.0200.07719.15
5.4.360.0230.07018.96
5.4.350.0100.08019.22
5.4.340.0270.06019.13
5.4.320.0270.06718.85
5.4.310.0170.07319.16
5.4.300.0270.03719.30
5.4.290.0370.05019.13
5.4.280.0230.04718.99
5.4.270.0300.07019.21
5.4.260.0270.07019.11
5.4.250.0300.06319.15
5.4.240.0200.05718.86
5.4.230.0170.05019.09
5.4.220.0200.07719.05
5.4.210.0200.06719.21
5.4.200.0270.07019.13
5.4.190.0270.04019.21
5.4.180.0230.07318.94
5.4.170.0200.04319.21
5.4.160.0270.07319.13
5.4.150.0230.05719.04
5.4.140.0170.07716.42
5.4.130.0230.06716.34
5.4.120.0170.07316.45
5.4.110.0230.05716.52
5.4.100.0230.07016.19
5.4.90.0230.05316.45
5.4.80.0370.05716.26
5.4.70.0200.06016.52
5.4.60.0270.06716.49
5.4.50.0300.06716.21
5.4.40.0170.04016.52
5.4.30.0200.06016.51
5.4.20.0200.06716.25
5.4.10.0130.05016.43
5.4.00.0270.06715.80
5.3.290.0200.07314.57
5.3.280.0300.07014.68
5.3.270.0130.08314.58
5.3.260.0170.07714.69
5.3.250.0200.07714.83
5.3.240.0230.06714.52
5.3.230.0200.07714.68
5.3.220.0170.05014.56
5.3.210.0330.06314.49
5.3.200.0170.06014.68
5.3.190.0130.04314.57
5.3.180.0230.07314.68
5.3.170.0130.07314.65
5.3.160.0270.06714.48
5.3.150.0230.07014.64
5.3.140.0300.07314.63
5.3.130.0230.04014.67
5.3.120.0130.08014.52
5.3.110.0170.06714.52
5.3.100.0230.07314.01
5.3.90.0200.07313.95
5.3.80.0230.07314.03
5.3.70.0200.06314.18
5.3.60.0170.07714.08
5.3.50.0300.03714.00
5.3.40.0230.07013.86
5.3.30.0270.05313.82
5.3.20.0170.07713.86
5.3.10.0200.06313.82
5.3.00.0200.07013.55
5.2.170.0170.06311.84
5.2.160.0170.04011.84
5.2.150.0000.04711.84
5.2.140.0170.05311.84
5.2.130.0230.04311.84
5.2.120.0170.06011.84
5.2.110.0130.02711.84
5.2.100.0070.03311.84
5.2.90.0100.04711.84
5.2.80.0200.03311.84
5.2.70.0230.03311.84
5.2.60.0070.04711.84
5.2.50.0200.03711.84
5.2.40.0100.03711.84
5.2.30.0070.03711.84
5.2.20.0100.05711.84
5.2.10.0130.06311.84
5.2.00.0170.05711.84
5.1.60.0030.05711.84
5.1.50.0100.05311.84
5.1.40.0130.03311.84
5.1.30.0100.02311.84
5.1.20.0100.05311.84
5.1.10.0130.04011.84
5.1.00.0100.05311.84
5.0.50.0070.04711.84
5.0.40.0130.04011.84
5.0.30.0070.04311.84
5.0.20.0070.04011.84
5.0.10.0070.04311.84
5.0.00.0030.05311.84
4.4.90.0000.03311.84
4.4.80.0100.03011.84
4.4.70.0030.02311.84
4.4.60.0000.02011.84
4.4.50.0070.03311.84
4.4.40.0070.04311.84
4.4.30.0000.03311.84
4.4.20.0070.02711.84
4.4.10.0070.02011.84
4.4.00.0000.06011.84
4.3.110.0100.02011.84
4.3.100.0100.02711.84
4.3.90.0100.02711.84
4.3.80.0030.05711.84
4.3.70.0130.03011.84
4.3.60.0100.01011.84
4.3.50.0100.01311.84
4.3.40.0070.03011.84
4.3.30.0130.03011.84
4.3.20.0000.03311.84
4.3.10.0070.03311.84
4.3.00.0070.02011.84

preferences:
63.45 ms | 401 KiB | 5 Q