3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { function baz($moo); } abstract class Bar implements Foo {} class_alias('Bar', 'Bar53'); eval('abstract class Bar52 extends Bar {}'); class Test53 extends Bar53 { function baz($moo) {} } class Test52 extends Bar52 { function baz($moo) {} } var_dump(new Test52() instanceof Foo); var_dump(new Test53() instanceof 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.60.0140.00716.50
8.3.50.0080.00822.04
8.3.40.0110.01118.85
8.3.30.0060.00919.09
8.3.20.0040.00420.29
8.3.10.0080.00023.56
8.3.00.0060.00319.38
8.2.180.0090.00618.41
8.2.170.0040.01122.96
8.2.160.0070.00720.26
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.08
8.2.110.0030.00622.15
8.2.100.0110.00417.66
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0060.00317.25
8.2.60.0040.00417.78
8.2.50.0000.00818.07
8.2.40.0100.00019.76
8.2.30.0050.00318.07
8.2.20.0040.00417.63
8.2.10.0060.00318.01
8.2.00.0000.00717.55
8.1.280.0070.00725.92
8.1.270.0060.00322.19
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00022.13
8.1.230.0040.00819.09
8.1.220.0000.00917.74
8.1.210.0090.00018.77
8.1.200.0060.00317.00
8.1.190.0040.00417.25
8.1.180.0090.00018.10
8.1.170.0000.00918.43
8.1.160.0050.00322.09
8.1.150.0060.00318.50
8.1.140.0050.00217.34
8.1.130.0000.00817.75
8.1.120.0000.00717.45
8.1.110.0040.00417.29
8.1.100.0030.00317.38
8.1.90.0070.00017.36
8.1.80.0040.00417.45
8.1.70.0020.00517.41
8.1.60.0060.00317.48
8.1.50.0040.00417.47
8.1.40.0040.00417.41
8.1.30.0080.00017.56
8.1.20.0000.00817.54
8.1.10.0070.00017.43
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00817.18
8.0.280.0000.00718.45
8.0.270.0000.00817.27
8.0.260.0030.00317.23
8.0.250.0050.00317.01
8.0.240.0070.00016.94
8.0.230.0040.00416.91
8.0.220.0070.00016.94
8.0.210.0030.00316.79
8.0.200.0000.00616.88
8.0.190.0040.00416.82
8.0.180.0000.00716.87
8.0.170.0030.00516.88
8.0.160.0050.00216.91
8.0.150.0040.00416.73
8.0.140.0040.00416.86
8.0.130.0030.00313.29
8.0.120.0000.00716.89
8.0.110.0050.00316.75
8.0.100.0000.00816.88
8.0.90.0040.00416.95
8.0.80.0060.00916.79
8.0.70.0000.00716.93
8.0.60.0040.00416.74
8.0.50.0000.00716.88
8.0.30.0110.01116.86
8.0.20.0070.01217.40
8.0.10.0050.00216.74
8.0.00.0100.01016.72
7.4.330.0020.00215.00
7.4.320.0030.00316.61
7.4.300.0030.00316.52
7.4.290.0040.00416.52
7.4.280.0040.00416.59
7.4.270.0030.00316.48
7.4.260.0070.00016.49
7.4.250.0000.00716.49
7.4.240.0020.00516.62
7.4.230.0040.00416.68
7.4.220.0060.01216.55
7.4.210.0090.00916.59
7.4.200.0000.00716.42
7.4.190.0030.00316.75
7.4.160.0040.01316.46
7.4.150.0160.00317.40
7.4.140.0110.01317.86
7.4.130.0160.01416.54
7.4.120.0110.00716.39
7.4.110.0170.00316.48
7.4.100.0100.01016.53
7.4.90.0150.00416.45
7.4.80.0110.01519.39
7.4.70.0130.00716.43
7.4.60.0030.01316.32
7.4.50.0030.00516.24
7.4.40.0120.00616.57
7.4.30.0060.00916.59
7.4.00.0090.00914.89
7.3.330.0020.00513.03
7.3.320.0060.00013.09
7.3.310.0030.00316.30
7.3.300.0070.00016.25
7.3.290.0110.00516.23
7.3.280.0110.00616.23
7.3.270.0120.01017.40
7.3.260.0000.01716.27
7.3.250.0050.01516.25
7.3.240.0140.00416.26
7.3.230.0190.00316.39
7.3.210.0170.00016.32
7.3.200.0080.01619.39
7.3.190.0090.00916.33
7.3.180.0030.01916.23
7.3.170.0120.00616.27
7.3.160.0090.00716.26
7.3.120.0050.01014.81
7.3.110.0070.01414.43
7.3.100.0000.01514.75
7.3.90.0060.00615.04
7.3.80.0030.00614.74
7.3.70.0030.00914.69
7.3.60.0060.00614.79
7.3.50.0060.00614.84
7.3.40.0120.00614.87
7.3.30.0060.00914.76
7.3.20.0030.00616.25
7.3.10.0110.00316.67
7.3.00.0060.00616.48
7.2.330.0120.00616.68
7.2.320.0120.00916.70
7.2.310.0070.01016.47
7.2.300.0140.00316.48
7.2.290.0060.01016.53
7.2.250.0100.00714.96
7.2.240.0060.01514.84
7.2.230.0110.00714.96
7.2.220.0120.00314.81
7.2.210.0040.00714.75
7.2.200.0070.00715.04
7.2.190.0070.00714.52
7.2.180.0060.00815.07
7.2.170.0030.00614.90
7.1.330.0100.00315.79
7.1.320.0060.00615.88
7.1.310.0070.00715.79
7.1.300.0090.00615.54
7.1.290.0110.00415.54
7.1.280.0030.00515.71
7.1.270.0060.00615.63
7.1.260.0100.00315.68
7.1.70.0040.00417.18
7.1.60.0060.01319.46
7.1.50.0100.01416.73
7.1.00.0100.07022.49
7.0.200.0000.00716.74
7.0.140.0100.06722.00
7.0.60.0100.03720.07
7.0.50.0100.06717.86
7.0.40.0030.04720.25
7.0.30.0300.05320.26
7.0.20.0130.05720.14
7.0.10.0030.05320.18
7.0.00.0000.04720.27
5.6.280.0000.07721.08
5.6.210.0070.06720.54
5.6.200.0100.07018.22
5.6.190.0100.03720.64
5.6.180.0200.05720.77
5.6.170.0400.07020.59
5.6.160.0070.08720.52
5.6.150.0100.05318.21
5.6.140.0070.07318.29
5.6.130.0100.07318.18
5.6.120.0070.05021.00
5.6.110.0130.07021.01
5.6.100.0130.08021.12
5.6.90.0100.08721.00
5.6.80.0300.05320.36
5.5.350.0400.06020.34
5.5.340.0100.08017.95
5.5.330.0130.07720.21
5.5.320.0300.04720.42
5.5.310.0330.06020.35
5.5.300.0070.07718.04
5.5.290.0130.07317.98
5.5.280.0000.05320.81
5.5.270.0070.08320.80
5.5.260.0070.04720.90
5.5.250.0030.07720.51
5.5.240.0030.07720.19
5.4.450.0300.05019.44
5.4.440.0270.05719.38
5.4.430.0170.06019.46
5.4.420.0200.07319.60
5.4.410.0200.05319.09
5.4.400.0170.06319.26
5.4.390.0270.05318.98
5.4.380.0200.04718.73
5.4.370.0200.06318.78
5.4.360.0030.06018.53
5.4.350.0100.05718.74
5.4.340.0170.05018.59
5.4.320.0090.04112.50
5.4.310.0150.04812.50
5.4.300.0070.03512.51
5.4.290.0080.04012.48
5.4.280.0070.03812.38
5.4.270.0050.04012.38
5.4.260.0070.03912.38
5.4.250.0060.03912.38
5.4.240.0060.03812.38
5.4.230.0050.04112.38
5.4.220.0060.03812.37
5.4.210.0050.03712.38
5.4.200.0080.03812.38
5.4.190.0050.03912.38
5.4.180.0070.04512.37
5.4.170.0080.05612.38
5.4.160.0090.05112.38
5.4.150.0090.05212.38
5.4.140.0090.05412.06
5.4.130.0100.04812.05
5.4.120.0110.04712.00
5.4.110.0090.04912.00
5.4.100.0090.04712.00
5.4.90.0110.04712.00
5.4.80.0070.05112.00
5.4.70.0090.04612.00
5.4.60.0100.04212.00
5.4.50.0090.04912.00
5.4.40.0060.05211.99
5.4.30.0090.04411.98
5.4.20.0130.04311.98
5.4.10.0080.04611.98
5.4.00.0050.04411.47
5.3.290.0070.04112.80
5.3.280.0040.04212.71
5.3.270.0080.03812.72
5.3.260.0100.03612.71
5.3.250.0070.04112.72
5.3.240.0070.03712.71
5.3.230.0070.03812.71
5.3.220.0080.03512.68
5.3.210.0090.06012.68
5.3.200.0150.05012.68
5.3.190.0080.04212.68
5.3.180.0070.04012.68
5.3.170.0150.05112.67
5.3.160.0050.04012.68
5.3.150.0090.04312.68
5.3.140.0100.03912.66
5.3.130.0090.04012.66
5.3.120.0080.04112.66
5.3.110.0090.04412.66
5.3.100.0080.04012.12
5.3.90.0060.04512.11
5.3.80.0080.04812.09
5.3.70.0090.05712.09
5.3.60.0090.06012.08
5.3.50.0090.05112.04
5.3.40.0090.05712.03
5.3.30.0030.04011.99
5.3.20.0050.03711.77
5.3.10.0050.03811.73
5.3.00.0070.03911.72
5.2.170.0070.0329.23
5.2.160.0090.0289.23
5.2.150.0120.0599.23
5.2.140.0040.0359.23
5.2.130.0100.0559.19
5.2.120.0060.0879.19
5.2.110.0070.0319.20
5.2.100.0110.0269.19
5.2.90.0060.0369.19
5.2.80.0060.0379.18
5.2.70.0050.0349.18
5.2.60.0040.0339.14
5.2.50.0050.0309.11
5.2.40.0060.0289.08
5.2.30.0070.0299.05
5.2.20.0040.0309.04
5.2.10.0040.0308.95
5.2.00.0060.0308.81
5.1.60.0060.0278.10
5.1.50.0060.0308.09
5.1.40.0050.0428.08
5.1.30.0150.0298.43
5.1.20.0160.0538.45
5.1.10.0090.0338.17
5.1.00.0070.0518.17
5.0.50.0130.0556.65
5.0.40.0150.0676.50
5.0.30.0280.1136.32
5.0.20.0190.1066.29
5.0.10.0150.0556.27
5.0.00.0130.0866.26
4.4.90.0110.0384.78
4.4.80.0130.0364.75
4.4.70.0120.0284.76
4.4.60.0020.0294.76
4.4.50.0090.0324.77
4.4.40.0050.0314.71
4.4.30.0050.0224.76
4.4.20.0040.0244.84
4.4.10.0020.0264.85
4.4.00.0070.0364.76
4.3.110.0050.0284.67
4.3.100.0060.0334.66
4.3.90.0070.0194.63
4.3.80.0080.0304.59
4.3.70.0090.0314.63
4.3.60.0120.0334.63
4.3.50.0080.0294.63
4.3.40.0080.0384.54
4.3.30.0030.0173.28
4.3.20.0060.0243.26
4.3.10.0030.0213.22
4.3.00.0000.0306.92

preferences:
49.96 ms | 401 KiB | 5 Q