3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function test(self $other); } class TestImpl implements Test { public function test(Test $other) { // Uh oh... some PHP's dont agree echo var_export($other, true) . "\n"; } } $a = new TestImpl(); $b = new TestImpl(); $a->test($b);

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.00018.43
8.3.50.0350.00821.21
8.3.40.0070.01118.70
8.3.30.0100.00719.09
8.3.20.0000.00720.32
8.3.10.0070.00023.68
8.3.00.0050.00319.25
8.2.180.0070.01016.61
8.2.170.0100.00322.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00022.28
8.2.110.0110.00020.92
8.2.100.0040.00718.09
8.2.90.0050.00317.84
8.2.80.0030.00618.04
8.2.70.0000.00818.03
8.2.60.0000.00917.96
8.2.50.0000.00818.10
8.2.40.0080.00019.47
8.2.30.0040.00419.35
8.2.20.0000.00717.68
8.2.10.0000.00717.98
8.2.00.0030.00617.67
8.1.280.0040.01125.92
8.1.270.0060.00323.91
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00323.85
8.1.230.0090.00322.81
8.1.220.0080.00017.79
8.1.210.0090.00018.77
8.1.200.0000.00917.22
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0000.00718.91
8.1.150.0000.00718.77
8.1.140.0000.00717.43
8.1.130.0000.00717.73
8.1.120.0040.00417.36
8.1.110.0000.00917.34
8.1.100.0050.00317.49
8.1.90.0070.00017.44
8.1.80.0020.00517.46
8.1.70.0030.00317.40
8.1.60.0030.00617.61
8.1.50.0080.00017.41
8.1.40.0050.00317.57
8.1.30.0050.00317.57
8.1.20.0030.00617.55
8.1.10.0080.00017.46
8.1.00.0070.00017.39
8.0.300.0000.00719.79
8.0.290.0000.00816.75
8.0.280.0000.00718.43
8.0.270.0000.00717.29
8.0.260.0030.00317.31
8.0.250.0040.00416.93
8.0.240.0030.00516.98
8.0.230.0000.00717.00
8.0.220.0000.00716.95
8.0.210.0030.00316.90
8.0.200.0000.00617.00
8.0.190.0030.00516.90
8.0.180.0000.00716.89
8.0.170.0000.00816.86
8.0.160.0060.00317.04
8.0.150.0080.00416.93
8.0.140.0000.00816.80
8.0.130.0000.00513.31
8.0.120.0050.00516.96
8.0.110.0040.00416.91
8.0.100.0000.00716.85
8.0.90.0060.00316.82
8.0.80.0080.00816.96
8.0.70.0040.00416.88
8.0.60.0000.00816.90
8.0.50.0030.00516.81
8.0.30.0120.01017.15
8.0.20.0160.00817.40
8.0.10.0050.00316.94
8.0.00.0080.01016.61
7.4.330.0000.00415.00
7.4.320.0000.00716.46
7.4.300.0030.00616.59
7.4.290.0070.00016.50
7.4.280.0050.00516.47
7.4.270.0000.00716.56
7.4.260.0030.00316.45
7.4.250.0050.00316.48
7.4.240.0000.00716.44
7.4.230.0070.00016.60
7.4.220.0100.00716.46
7.4.210.0100.00316.60
7.4.200.0040.00416.39
7.4.160.0060.01016.59
7.4.150.0040.01317.40
7.4.140.0130.00717.86
7.4.130.0150.00316.50
7.4.120.0120.00916.59
7.4.110.0070.01516.58
7.4.100.0130.00416.38
7.4.90.0130.00316.50
7.4.80.0030.01219.39
7.4.70.0060.01216.43
7.4.60.0100.00716.42
7.4.50.0060.00316.48
7.4.40.0090.00616.59
7.4.30.0130.00516.45
7.4.00.0040.01214.72
7.3.330.0020.00213.29
7.3.320.0020.00313.09
7.3.310.0030.00316.18
7.3.300.0040.00416.25
7.3.290.0000.01316.34
7.3.280.0090.00716.29
7.3.270.0140.00417.40
7.3.260.0070.01016.20
7.3.250.0100.00716.55
7.3.240.0090.00916.20
7.3.230.0050.01116.59
7.3.210.0060.01016.18
7.3.200.0040.01819.39
7.3.190.0130.00316.63
7.3.180.0060.01216.26
7.3.170.0070.01416.43
7.3.160.0070.01016.52
7.3.10.0090.00616.64
7.3.00.0130.01016.66
7.2.330.0100.01616.70
7.2.320.0080.00816.32
7.2.310.0090.00816.68
7.2.300.0060.01016.34
7.2.290.0110.00616.30
7.2.130.0100.00716.76
7.2.120.0170.00416.63
7.2.110.0130.00316.64
7.2.100.0150.00016.81
7.2.90.0120.00617.06
7.2.80.0080.00816.65
7.2.70.0070.01016.75
7.2.60.0100.00816.88
7.2.50.0130.00516.81
7.2.40.0180.00716.79
7.2.30.0090.00816.67
7.2.20.0180.00316.44
7.2.10.0130.00716.67
7.2.00.0140.00716.76
7.1.250.0120.00615.75
7.1.200.0000.01115.71
7.1.70.0000.00816.86
7.1.60.0160.01019.32
7.1.50.0110.01117.03
7.1.00.0000.08022.54
7.0.200.0060.00316.72
7.0.140.0030.07322.21
7.0.60.0100.06319.93
7.0.50.0030.04017.90
7.0.40.0070.08720.13
7.0.30.0330.04020.15
7.0.20.0370.07320.21
7.0.10.0270.08020.12
7.0.00.0000.04320.10
5.6.280.0100.06321.07
5.6.210.0030.08320.48
5.6.200.0130.06318.29
5.6.190.0070.04320.55
5.6.180.0200.08020.41
5.6.170.0330.07320.48
5.6.160.0100.08020.54
5.6.150.0030.04718.23
5.6.140.0100.07018.15
5.6.130.0130.06318.28
5.6.120.0000.05021.00
5.6.110.0030.09321.12
5.6.100.0070.08321.00
5.6.90.0070.08321.12
5.6.80.0100.07320.37
5.6.70.3230.03320.41
5.5.350.0130.08320.47
5.5.340.0030.05717.97
5.5.330.0030.07320.21
5.5.320.0330.05020.27
5.5.310.0330.04020.20
5.5.300.0030.08318.04
5.5.290.0100.07718.01
5.5.280.0070.04020.90
5.5.270.0100.08020.93
5.5.260.0130.07720.77
5.5.250.0070.04020.67
5.5.240.0370.06020.24
5.4.450.0100.05719.56
5.4.440.0500.06719.15
5.4.430.0500.05019.32
5.4.420.0630.00019.32
5.4.410.0670.00019.32
5.4.400.0630.00019.16
5.4.390.0670.00018.98
5.4.380.0700.00019.23
5.4.370.0630.00019.21
5.4.360.0630.00018.98
5.4.350.0670.00019.06
5.4.340.0040.03612.02
5.4.320.0040.03712.50
5.4.310.0040.04012.50
5.4.300.0060.03612.50
5.4.290.0060.03912.50
5.4.280.0050.03812.40
5.4.270.0050.03812.39
5.4.260.0030.04112.39
5.4.250.0080.03712.39
5.4.240.0070.03712.39
5.4.230.0050.03812.39
5.4.220.0070.03512.39
5.4.210.0050.03612.39
5.4.200.0050.03812.39
5.4.190.0030.04112.38
5.4.180.0070.03512.38
5.4.170.0060.03412.40
5.4.160.0060.03512.39
5.4.150.0030.03712.38
5.4.140.0040.03712.07
5.4.130.0050.03412.06
5.4.120.0050.03412.02
5.4.110.0060.03412.01
5.4.100.0050.03512.02
5.4.90.0040.03812.01
5.4.80.0090.03312.02
5.4.70.0040.04412.01
5.4.60.0090.04012.01
5.4.50.0020.04012.00
5.4.40.0040.04412.00
5.4.30.0080.03311.99
5.4.20.0060.03611.99
5.4.10.0070.03411.99
5.4.00.0060.03611.48
5.3.290.0070.03812.80
5.3.280.0070.04012.71
5.3.270.0050.04412.72
5.3.260.0060.04012.72
5.3.250.0080.04012.71
5.3.240.0080.04612.72
5.3.230.0070.04612.71
5.3.220.0050.03812.68
5.3.210.0060.04112.68
5.3.200.0080.03512.68
5.3.190.0070.03612.68
5.3.180.0050.03912.67
5.3.170.0080.03812.67
5.3.160.0070.03612.67
5.3.150.0060.03912.67
5.3.140.0080.03912.66
5.3.130.0050.04612.66
5.3.120.0070.04912.66
5.3.110.0080.05012.66
5.3.100.0160.07812.13
5.3.90.0090.06012.11
5.3.80.0090.07412.10
5.3.70.0180.07612.10
5.3.60.0060.05312.09
5.3.50.0060.05912.04
5.3.40.0060.05112.03
5.3.30.0070.04211.98
5.3.20.0080.04811.77
5.3.10.0070.04511.74
5.3.00.0090.03611.72
5.2.170.0100.0529.23
5.2.160.0080.0369.23
5.2.150.0090.0449.23
5.2.140.0050.0459.23
5.2.130.0050.0449.18
5.2.120.0090.0389.19
5.2.110.0130.0859.19
5.2.100.0060.0409.19
5.2.90.0060.0439.19
5.2.80.0040.0309.18
5.2.70.0070.0319.17
5.2.60.0040.0339.13
5.2.50.0050.0319.10
5.2.40.0070.0289.08
5.2.30.0160.0549.05
5.2.20.0060.0689.04
5.2.10.0070.0408.95
5.2.00.0040.0328.81
5.1.60.0050.0338.10
5.1.50.0060.0248.09
5.1.40.0040.0298.08
5.1.30.0040.0288.42
5.1.20.0070.0288.45
5.1.10.0040.0298.17
5.1.00.0050.0308.17
5.0.50.0070.0206.65
5.0.40.0030.0256.50
5.0.30.0070.0506.32
5.0.20.0070.0316.29
5.0.10.0070.0426.26
5.0.00.0020.0336.26
4.4.90.0030.0164.78
4.4.80.0040.0154.75
4.4.70.0020.0174.75
4.4.60.0050.0164.75
4.4.50.0080.0174.77
4.4.40.0070.0364.71
4.4.30.0030.0214.75
4.4.20.0030.0194.85
4.4.10.0020.0184.85
4.4.00.0010.0284.76
4.3.110.0030.0174.66
4.3.100.0040.0254.67
4.3.90.0030.0174.64
4.3.80.0020.0284.58
4.3.70.0020.0164.63
4.3.60.0010.0184.63
4.3.50.0010.0204.63
4.3.40.0010.0284.54
4.3.30.0020.0183.28
4.3.20.0010.0193.26
4.3.10.0060.0503.22
4.3.00.0030.0207.19

preferences:
41.53 ms | 401 KiB | 5 Q