3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Concrete { function foo(); } class Bar { } abstract class AbsConcrete implements Concrete { abstract protected function foo(); } class Customer extends AbsConcrete { public function init() { echo "init\n"; } public function foo( Bar $me = null, Bar $lala = null ) { echo "foo\n"; } } $customer = new Customer; $customer->init(); $customer->foo( new Bar, new Bar );

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.0040.01118.67
8.3.30.0030.01020.21
8.3.20.0060.00318.41
8.3.10.0050.00321.00
8.3.00.0060.00323.71
8.2.170.0090.00622.96
8.2.160.0110.00320.33
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.85
8.2.110.0080.00020.35
8.2.100.0120.00017.66
8.2.90.0000.00719.11
8.2.80.0040.00419.38
8.2.70.0040.00417.36
8.2.60.0030.00517.93
8.2.50.0030.00618.07
8.2.40.0050.00318.03
8.2.30.0030.00519.50
8.2.20.0000.00717.48
8.2.10.0000.00817.61
8.2.00.0030.00517.50
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.76
8.1.230.0080.00423.88
8.1.220.0040.00418.77
8.1.210.0050.00319.04
8.1.200.0000.00917.23
8.1.190.0040.00417.53
8.1.180.0090.00018.10
8.1.170.0050.00318.41
8.1.160.0040.00418.88
8.1.150.0000.00818.57
8.1.140.0070.00017.30
8.1.130.0000.00717.77
8.1.120.0050.00317.29
8.1.110.0040.00417.38
8.1.100.0000.00817.41
8.1.90.0000.00717.26
8.1.80.0050.00217.29
8.1.70.0030.00317.33
8.1.60.0030.00617.48
8.1.50.0000.00817.42
8.1.40.0040.00417.46
8.1.30.0000.00717.55
8.1.20.0080.00017.69
8.1.10.0060.00317.47
8.1.00.0030.00717.32
8.0.300.0030.00319.84
8.0.290.0000.00817.18
8.0.280.0000.00718.39
8.0.270.0030.00317.07
8.0.260.0080.00016.74
8.0.250.0040.00416.87
8.0.240.0000.00816.98
8.0.230.0040.00416.92
8.0.220.0030.00316.91
8.0.210.0030.00316.78
8.0.200.0000.00717.00
8.0.190.0080.00316.94
8.0.180.0040.00416.93
8.0.170.0000.00816.86
8.0.160.0070.00016.85
8.0.150.0000.00716.91
8.0.140.0000.00716.77
8.0.130.0030.00313.30
8.0.120.0040.00416.87
8.0.110.0040.00416.80
8.0.100.0000.00716.96
8.0.90.0000.00716.86
8.0.80.0090.00616.77
8.0.70.0040.00416.88
8.0.60.0000.00716.78
8.0.50.0020.00516.96
8.0.30.0160.00817.02
8.0.20.0110.00917.40
8.0.10.0080.00017.04
8.0.00.0110.01016.79
7.4.330.0050.00014.92
7.4.320.0060.00016.45
7.4.300.0030.00316.41
7.4.290.0030.00316.45
7.4.280.0040.00416.44
7.4.270.0060.00016.43
7.4.260.0000.00513.22
7.4.250.0040.00416.40
7.4.240.0080.00016.50
7.4.230.0000.00716.57
7.4.220.0160.00616.45
7.4.210.0090.00616.46
7.4.200.0030.00316.57
7.4.190.0000.00816.64
7.4.160.0100.00716.30
7.4.150.0130.01317.40
7.4.140.0080.00917.86
7.4.130.0110.00816.37
7.4.120.0050.01116.45
7.4.110.0150.00316.48
7.4.100.0070.01016.38
7.4.90.0060.01216.15
7.4.80.0030.01319.39
7.4.70.0030.01416.37
7.4.60.0100.00616.45
7.4.50.0000.00916.64
7.4.40.0040.01522.77
7.4.30.0030.01316.52
7.4.00.0150.00314.96
7.3.330.0050.00013.20
7.3.320.0050.00013.32
7.3.310.0070.00016.14
7.3.300.0000.00716.11
7.3.290.0100.01016.24
7.3.280.0060.01016.24
7.3.270.0080.00817.40
7.3.260.0130.00818.24
7.3.250.0130.00816.37
7.3.240.0160.00016.48
7.3.230.0090.00816.50
7.3.210.0080.00816.21
7.3.200.0100.01219.39
7.3.190.0080.00916.41
7.3.180.0040.01616.41
7.3.170.0100.00716.36
7.3.160.0120.00316.33
7.3.120.0090.00614.91
7.3.10.0110.00416.31
7.3.00.0190.00316.35
7.2.330.0080.00816.64
7.2.320.0030.01616.65
7.2.310.0040.01316.54
7.2.300.0060.01016.23
7.2.290.0060.00916.56
7.2.130.0100.00816.56
7.2.120.0060.00916.44
7.2.110.0050.01016.39
7.2.100.0080.00716.51
7.2.90.0100.00316.63
7.2.80.0110.00316.34
7.2.70.0110.00816.69
7.2.60.0110.00616.66
7.2.50.0070.00716.82
7.2.40.0100.00516.45
7.2.30.0040.01116.47
7.2.20.0080.00516.59
7.2.10.0100.00716.69
7.2.00.0060.00917.39
7.1.250.0150.00615.43
7.1.240.0000.01315.54
7.1.230.0040.00815.25
7.1.220.0030.00615.34
7.1.210.0040.00915.38
7.1.200.0020.01015.46
7.1.190.0090.00615.61
7.1.180.0100.00315.25
7.1.170.0040.00415.40
7.1.160.0070.00715.62
7.1.150.0070.00715.13
7.1.140.0130.00715.60
7.1.130.0030.00715.43
7.1.120.0030.00715.49
7.1.110.0040.00715.48
7.1.100.0070.00616.76
7.1.90.0040.01115.62
7.1.80.0140.00015.59
7.1.70.0090.00515.93
7.1.60.0050.01517.28
7.1.50.0080.01216.15
7.1.40.0040.00815.50
7.1.30.0080.00815.42
7.1.20.0030.00915.05
7.1.10.0000.00815.16
7.1.00.0110.03719.07
7.0.330.0090.00614.88
7.0.320.0100.00315.16
7.0.310.0080.00814.92
7.0.300.0060.00315.04
7.0.290.0130.00714.91
7.0.280.0040.00415.09
7.0.270.0000.00814.87
7.0.260.0060.00315.34
7.0.250.0070.00715.31
7.0.240.0040.00814.99
7.0.230.0070.00715.23
7.0.220.0070.00714.99
7.0.210.0030.00715.24
7.0.200.0020.00715.97
7.0.190.0040.01114.96
7.0.180.0100.00315.18
7.0.170.0060.00914.91
7.0.160.0030.01015.29
7.0.150.0060.00614.79
7.0.140.0050.04018.46
7.0.130.0080.00415.06
7.0.120.0080.00415.00
7.0.110.0040.01115.33
7.0.100.0060.04317.49
7.0.90.0050.04417.61
7.0.80.0070.04717.55
7.0.70.0100.04517.46
7.0.60.0060.02717.56
7.0.50.0070.03717.68
7.0.40.0120.03516.79
7.0.30.0030.04916.58
7.0.20.0070.04516.54
7.0.10.0020.04416.71
7.0.00.0070.04416.60
5.6.380.0030.01214.08
5.6.370.0000.01014.35
5.6.360.0040.00813.96
5.6.350.0000.00813.82
5.6.340.0080.00614.10
5.6.330.0030.00914.21
5.6.320.0080.00414.04
5.6.310.0000.01413.61
5.6.300.0070.01013.75
5.6.290.0150.00613.91
5.6.280.0050.04217.56
5.6.270.0000.01614.24
5.6.260.0080.00014.13
5.6.250.0070.03017.56
5.6.240.0070.04217.38
5.6.230.0060.04217.43
5.6.220.0040.04217.36
5.6.210.0070.04317.49
5.6.200.0080.03217.57
5.6.190.0050.04117.73
5.6.180.0080.04517.57
5.6.170.0050.03217.60
5.6.160.0100.04317.51
5.6.150.0100.04517.62
5.6.140.0110.04017.44
5.6.130.0130.04017.61
5.6.120.0030.04617.54
5.6.110.0080.03017.62
5.6.100.0130.04117.47
5.6.90.0080.03817.53
5.6.80.0090.04317.21
5.6.70.0100.04217.37
5.6.60.0100.03817.25
5.6.50.0020.04417.28
5.6.40.0150.04017.35
5.6.30.0060.04417.21
5.6.20.0080.02017.31
5.6.10.0120.04017.31
5.6.00.0000.04217.27
5.5.380.0070.03915.62
5.5.370.0060.04315.49
5.5.360.0080.02715.44
5.5.350.0050.04715.65
5.5.340.0030.02715.95
5.5.330.0050.04115.75
5.5.320.0050.04115.93
5.5.310.0030.02515.75
5.5.300.0130.04715.79
5.5.290.0050.04515.96
5.5.280.0140.03815.98
5.5.270.0090.04115.79
5.5.260.0070.04615.87
5.5.250.0030.04315.81
5.5.240.0120.03515.64
5.5.230.0070.04015.60
5.5.220.0110.03415.59
5.5.210.0090.03715.57
5.5.200.0110.02315.34
5.5.190.0110.03315.67
5.5.180.0100.03815.39
5.5.170.0080.00810.97
5.5.160.0030.04315.44
5.5.150.0040.04415.54
5.5.140.0130.03515.68
5.5.130.0070.04415.49
5.5.120.0070.03715.48
5.5.110.0100.03815.54
5.5.100.0040.04415.49
5.5.90.0030.04015.52
5.5.80.0080.04115.50
5.5.70.0030.04315.38
5.5.60.0050.04015.24
5.5.50.0060.04015.54
5.5.40.0030.03715.44
5.5.30.0060.04215.39
5.5.20.0070.03515.40
5.5.10.0060.04115.49
5.5.00.0070.04015.47
5.4.450.0100.04614.88
5.4.440.0050.03714.85
5.4.430.0050.03715.09
5.4.420.0000.04415.10
5.4.410.0100.03715.12
5.4.400.0080.03314.82
5.4.390.0030.04214.97
5.4.380.0030.02514.76
5.4.370.0050.04314.85
5.4.360.0130.03514.91
5.4.350.0030.02914.92
5.4.340.0050.04215.11
5.4.330.0100.00310.75
5.4.320.0080.04014.88
5.4.310.0120.03314.80
5.4.300.0110.03814.90
5.4.290.0060.04414.80
5.4.280.0100.03314.86
5.4.270.0070.03714.97
5.4.260.0050.03714.92
5.4.250.0030.04014.90
5.4.240.0040.02814.80
5.4.230.0040.04114.64
5.4.220.0080.03514.78
5.4.210.0090.03814.62
5.4.200.0070.03914.88
5.4.190.0080.03514.56
5.4.180.0050.04014.92
5.4.170.0150.03814.80
5.4.160.0110.03914.99
5.4.150.0150.04015.03
5.4.140.0080.03613.49
5.4.130.0130.03713.55
5.4.120.0080.02713.39
5.4.110.0110.04013.49
5.4.100.0170.03513.69
5.4.90.0080.02313.70
5.4.80.0050.04113.70
5.4.70.0030.03913.66
5.4.60.0050.04013.57
5.4.50.0050.03813.68
5.4.40.0050.04013.38
5.4.30.0070.03513.63
5.4.20.0040.02613.55
5.4.10.0080.03613.50
5.4.00.0050.04013.34
5.3.290.0070.02512.60
5.3.280.0070.03712.34
5.3.270.0110.03812.48
5.3.260.0120.02212.43
5.3.250.0190.03212.54
5.3.240.0100.04012.43
5.3.230.0100.03512.52
5.3.220.0150.02312.42
5.3.210.0260.02512.37
5.3.200.0100.04212.39
5.3.190.0090.03812.42
5.3.180.0030.04212.48
5.3.170.0030.04112.55
5.3.160.0000.04112.38
5.3.150.0030.04012.47
5.3.140.0070.03612.34
5.3.130.0060.04112.35
5.3.120.0020.04212.47
5.3.110.0080.03812.37
5.3.100.0040.03812.11
5.3.90.0050.02212.29
5.3.80.0050.03712.14
5.3.70.0030.03312.18
5.3.60.0050.04012.30
5.3.50.0100.03112.14
5.3.40.0020.04012.21
5.3.30.0040.03912.11
5.3.20.0030.04212.04
5.3.10.0060.03312.10
5.3.00.0050.03312.08
5.2.170.0020.02212.01
5.2.160.0050.03012.01
5.2.150.0070.03012.01
5.2.140.0030.03612.01
5.2.130.0070.03212.01
5.2.120.0030.01812.01
5.2.110.0060.03412.01
5.2.100.0040.01612.01
5.2.90.0030.03512.01
5.2.80.0070.02012.01
5.2.70.0040.02512.01
5.2.60.0060.01812.01
5.2.50.0070.01512.01
5.2.40.0030.02512.01
5.2.30.0090.01312.01
5.2.20.0020.01812.01
5.2.10.0030.01712.01
5.2.00.0020.01612.01
5.1.60.0080.01312.01
5.1.50.0070.01212.01
5.1.40.0030.01312.01
5.1.30.0020.01512.01
5.1.20.0040.01312.01
5.1.10.0000.01912.01
5.1.00.0030.01312.01
5.0.50.0000.01412.01
5.0.40.0020.01212.01
5.0.30.0000.01812.01
5.0.20.0000.02412.01
5.0.10.0020.01612.01
5.0.00.0010.01912.01
4.4.90.0030.01012.01
4.4.80.0020.01512.01
4.4.70.0020.01212.01
4.4.60.0020.01012.01
4.4.50.0000.01112.01
4.4.40.0020.01212.01
4.4.30.0030.00712.01
4.4.20.0010.00912.01
4.4.10.0000.01012.01
4.4.00.0020.01712.01
4.3.110.0030.00812.01
4.3.100.0040.00812.01
4.3.90.0060.01112.01
4.3.80.0040.01512.01
4.3.70.0020.01612.01
4.3.60.0000.01312.01
4.3.50.0020.00812.01
4.3.40.0000.02312.01
4.3.30.0030.00812.01
4.3.20.0010.02012.01
4.3.10.0020.01312.01
4.3.00.0030.01012.01

preferences:
40.15 ms | 400 KiB | 5 Q