3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function doFooBar($foo, $bar=null); } interface Bar extends Foo { } class FooBar implements Bar { public function doFooBar($foo, $bar=null, $derp=1) { } } $d = new FooBar();

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.0110.00418.18
8.3.50.0300.00822.05
8.3.40.0140.00018.67
8.3.30.0090.00618.92
8.3.20.0000.00720.34
8.3.10.0080.00020.29
8.3.00.0000.00819.25
8.2.180.0090.00616.50
8.2.170.0140.00722.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00322.13
8.2.110.0030.00620.24
8.2.100.0070.00418.16
8.2.90.0000.00819.22
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0070.00417.93
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0050.00318.11
8.2.20.0040.00417.64
8.2.10.0060.00318.07
8.2.00.0000.00917.67
8.1.280.0140.00725.92
8.1.270.0040.00423.91
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0050.00323.84
8.1.230.0040.00719.15
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0080.00317.22
8.1.190.0050.00317.38
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0000.00721.93
8.1.150.0050.00218.88
8.1.140.0040.00417.33
8.1.130.0000.00717.86
8.1.120.0030.00317.52
8.1.110.0000.00717.39
8.1.100.0080.00017.41
8.1.90.0030.00317.42
8.1.80.0030.00317.44
8.1.70.0030.00317.27
8.1.60.0060.00317.60
8.1.50.0040.00417.58
8.1.40.0030.00617.38
8.1.30.0050.00317.49
8.1.20.0050.00217.64
8.1.10.0050.00217.38
8.1.00.0030.00617.46
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.37
8.0.270.0030.00316.82
8.0.260.0030.00317.12
8.0.250.0000.00716.84
8.0.240.0030.00316.94
8.0.230.0070.00016.94
8.0.220.0040.00416.77
8.0.210.0000.00716.84
8.0.200.0030.00316.85
8.0.190.0040.00416.88
8.0.180.0030.00316.84
8.0.170.0020.00516.93
8.0.160.0000.00716.79
8.0.150.0030.00316.75
8.0.140.0070.00816.68
8.0.130.0060.00313.27
8.0.120.0030.00516.88
8.0.110.0040.00416.82
8.0.100.0030.00316.92
8.0.90.0000.00716.77
8.0.80.0110.00416.85
8.0.70.0020.00516.95
8.0.60.0050.00216.77
8.0.50.0040.00416.90
8.0.30.0120.00717.19
8.0.20.0090.01017.40
8.0.10.0040.00417.00
8.0.00.0090.00716.87
7.4.330.0030.00315.07
7.4.320.0000.00616.47
7.4.300.0030.00316.58
7.4.290.0030.00316.64
7.4.280.0000.00916.50
7.4.270.0030.00316.40
7.4.260.0070.00016.42
7.4.250.0080.00016.48
7.4.240.0050.00216.51
7.4.230.0070.00016.59
7.4.220.0170.00316.67
7.4.210.0100.00616.60
7.4.200.0030.00316.32
7.4.160.0000.01616.53
7.4.150.0090.01517.40
7.4.140.0080.00917.86
7.4.130.0110.00616.45
7.4.120.0090.00816.56
7.4.110.0140.01116.61
7.4.100.0100.00716.38
7.4.90.0060.01216.33
7.4.80.0110.00719.39
7.4.70.0140.00316.41
7.4.60.0120.00316.46
7.4.50.0030.00316.18
7.4.40.0140.00316.46
7.4.30.0110.00616.45
7.4.10.0120.00614.95
7.4.00.0070.00814.97
7.3.330.0020.00213.17
7.3.320.0000.00513.00
7.3.310.0070.00016.02
7.3.300.0000.00616.18
7.3.290.0080.00616.18
7.3.280.0060.01316.19
7.3.270.0090.00917.40
7.3.260.0140.00316.28
7.3.250.0100.00616.24
7.3.240.0120.00616.34
7.3.230.0100.00716.52
7.3.210.0100.00716.27
7.3.200.0180.00619.39
7.3.190.0090.00816.31
7.3.180.0060.00916.09
7.3.170.0060.01616.50
7.3.160.0030.01616.45
7.3.130.0150.00314.74
7.3.120.0060.00914.75
7.3.110.0120.00614.76
7.3.100.0070.00714.95
7.3.90.0060.00914.79
7.3.80.0100.00314.90
7.3.70.0030.00914.75
7.3.60.0110.00414.80
7.3.50.0070.00714.84
7.3.40.0110.00414.63
7.3.30.0000.00914.67
7.3.20.0110.00416.49
7.3.10.0030.01216.19
7.3.00.0040.00816.21
7.2.330.0080.00816.66
7.2.320.0120.00916.35
7.2.310.0090.00916.61
7.2.300.0040.01216.56
7.2.290.0060.01016.49
7.2.260.0080.00814.89
7.2.250.0030.01315.09
7.2.240.0080.00414.66
7.2.230.0000.01314.93
7.2.220.0030.00715.13
7.2.210.0000.01214.67
7.2.200.0090.00014.50
7.2.190.0100.00714.85
7.2.180.0040.00814.60
7.2.170.0030.00614.64
7.2.160.0060.00815.07
7.2.150.0140.00416.52
7.2.140.0120.00616.61
7.2.130.0080.00416.79
7.2.120.0030.01316.89
7.2.110.0110.00316.78
7.2.100.0030.01416.86
7.2.90.0070.00716.52
7.2.80.0060.00316.70
7.2.70.0080.00816.57
7.2.60.0100.00716.74
7.2.50.0030.01316.98
7.2.40.0090.00616.85
7.2.30.0030.01316.80
7.2.20.0030.01017.06
7.2.10.0000.01216.98
7.2.00.0030.01018.04
7.1.330.0080.00515.63
7.1.320.0070.01015.63
7.1.310.0030.01015.48
7.1.300.0120.00015.43
7.1.290.0090.00315.55
7.1.280.0040.00415.62
7.1.270.0070.00715.73
7.1.260.0060.01115.92
7.1.250.0030.01015.82
7.1.240.0030.01015.81
7.1.230.0030.01015.68
7.1.220.0000.01315.73
7.1.210.0120.00315.58
7.1.200.0030.00515.73
7.1.190.0000.01015.70
7.1.180.0060.00615.50
7.1.170.0040.00415.53
7.1.160.0000.01515.68
7.1.150.0150.00015.60
7.1.140.0120.00015.72
7.1.130.0080.00415.66
7.1.120.0030.00915.61
7.1.110.0040.01215.60
7.1.100.0100.00916.80
7.1.90.0040.00415.61
7.1.80.0050.00515.85
7.1.70.0020.00816.24
7.1.60.0100.01017.49
7.1.50.0070.00316.21
7.1.40.0090.00015.39
7.1.30.0100.00615.69
7.1.20.0030.00615.62
7.1.10.0070.00315.59
7.1.00.0040.04019.02
7.0.330.0070.00715.44
7.0.320.0030.00715.34
7.0.310.0070.00715.23
7.0.300.0030.00615.40
7.0.290.0080.00415.23
7.0.280.0040.01115.21
7.0.270.0030.00915.40
7.0.260.0040.01115.27
7.0.250.0030.01015.44
7.0.240.0070.00715.51
7.0.230.0030.00915.01
7.0.220.0030.01015.10
7.0.210.0140.00015.30
7.0.200.0060.00215.86
7.0.190.0040.00915.32
7.0.180.0070.00715.35
7.0.170.0060.00614.92
7.0.160.0000.01215.23
7.0.150.0030.00615.14
7.0.140.0070.03818.74
7.0.130.0000.00915.46
7.0.120.0040.00815.47
7.0.110.0030.00915.42
7.0.100.0040.01115.25
7.0.90.0040.00415.41
7.0.80.0000.01215.34
7.0.70.1700.01417.79
7.0.60.0100.04117.50
7.0.50.0050.04216.59
7.0.40.0060.04516.81
7.0.30.0230.02816.71
7.0.20.0130.02916.86
7.0.10.0170.03916.82
7.0.00.0080.04316.60
5.6.400.0040.00814.27
5.6.390.0040.01114.55
5.6.380.0060.00614.47
5.6.370.0030.00814.32
5.6.360.0060.00614.34
5.6.350.0040.01114.61
5.6.340.0060.00614.25
5.6.330.0030.00714.53
5.6.320.0040.01114.31
5.6.310.0070.00714.19
5.6.300.0000.00914.11
5.6.290.0070.01014.67
5.6.280.0090.03417.86
5.6.270.0070.00714.45
5.6.260.0070.00714.43
5.6.250.0060.00314.33
5.6.240.0030.00714.53
5.6.230.0050.00514.24
5.6.220.0070.00714.43
5.6.210.0050.03117.44
5.6.200.0080.03516.34
5.6.190.0090.02917.44
5.6.180.0070.02417.40
5.6.170.0130.02917.45
5.6.160.0070.03917.42
5.6.150.0110.02016.17
5.6.140.0050.02516.38
5.6.130.0060.03016.27
5.6.120.0020.03117.63
5.6.110.0050.03917.58
5.6.100.0050.03017.72
5.6.90.0060.03117.61
5.6.80.0100.04317.22
5.6.70.0080.04417.42
5.6.60.0140.00414.39
5.6.50.0070.00714.35
5.6.40.0070.00314.42
5.6.30.0040.00814.12
5.6.20.0070.01014.52
5.6.10.0040.00814.25
5.6.00.0070.00714.34
5.5.380.0030.01014.51
5.5.370.0080.00314.26
5.5.360.0030.01014.54
5.5.350.0030.03217.36
5.5.340.0050.03515.96
5.5.330.0010.02417.36
5.5.320.0040.04717.17
5.5.310.0210.04017.29
5.5.300.0110.03716.04
5.5.290.0030.02616.08
5.5.280.0080.04017.55
5.5.270.0010.03917.35
5.5.260.0080.03117.55
5.5.250.0050.03117.39
5.5.240.0070.03317.22
5.5.230.0060.01014.33
5.5.220.0000.01314.19
5.5.210.0090.00014.44
5.5.200.0090.00414.28
5.5.190.0030.01214.26
5.5.180.0070.00714.02
5.5.170.0000.01414.46
5.5.160.0040.00413.77
5.5.150.0000.00914.00
5.5.140.0060.00314.25
5.5.130.0090.00414.17
5.5.120.0090.00613.93
5.5.110.0090.00614.07
5.5.100.0070.00714.43
5.5.90.0110.00414.09
5.5.80.0030.00514.06
5.5.70.0060.00914.18
5.5.60.0030.00913.73
5.5.50.0060.00913.97
5.5.40.0030.01014.10
5.5.30.0060.00614.11
5.5.20.0050.00514.02
5.5.10.0080.00414.07
5.5.00.0060.00614.21
5.4.450.0350.03316.06
5.4.440.0600.02716.06
5.4.430.0430.03816.08
5.4.420.0330.00416.12
5.4.410.0320.00516.08
5.4.400.0310.00415.89
5.4.390.0320.00415.92
5.4.380.0350.00415.98
5.4.370.0360.00215.90
5.4.360.0320.00315.92
5.4.350.0330.00215.92
5.4.340.0320.00315.91
5.4.330.0030.00512.71
5.4.320.0050.02112.60
5.4.310.0050.02312.60
5.4.300.0040.02112.60
5.4.290.0040.02312.60
5.4.280.0020.02212.55
5.4.270.0020.02212.55
5.4.260.0060.02012.55
5.4.250.0020.02312.55
5.4.240.0050.02212.55
5.4.230.0040.02212.55
5.4.220.0050.01912.54
5.4.210.0070.02012.54
5.4.200.0040.02212.55
5.4.190.0070.01812.54
5.4.180.0050.02212.54
5.4.170.0050.02012.55
5.4.160.0030.02112.55
5.4.150.0020.02212.54
5.4.140.0030.02112.39
5.4.130.0050.02012.38
5.4.120.0060.01912.36
5.4.110.0070.01812.36
5.4.100.0050.01912.36
5.4.90.0020.02212.36
5.4.80.0050.02112.36
5.4.70.0050.01912.36
5.4.60.0050.02112.36
5.4.50.0050.02012.36
5.4.40.0040.01912.35
5.4.30.0070.01812.35
5.4.20.0040.01912.35
5.4.10.0020.02412.35
5.4.00.0050.02212.10
5.3.290.0080.04112.80
5.3.280.0060.03712.71
5.3.270.0060.03812.72
5.3.260.0050.03812.72
5.3.250.0050.03612.72
5.3.240.0070.03512.72
5.3.230.0050.03712.71
5.3.220.0160.03212.68
5.3.210.0050.03812.68
5.3.200.0090.03312.68
5.3.190.0060.03712.68
5.3.180.0080.03312.67
5.3.170.0050.04012.67
5.3.160.0050.03712.68
5.3.150.0030.04112.67
5.3.140.0050.03612.66
5.3.130.0040.03912.66
5.3.120.0070.03812.66
5.3.110.0030.04012.65
5.3.100.0070.03512.13
5.3.90.0080.03412.10
5.3.80.0080.03312.09
5.3.70.0060.03712.10
5.3.60.0080.04012.08
5.3.50.0080.04612.03
5.3.40.0120.03712.03
5.3.30.0050.03711.98
5.3.20.0050.03611.76
5.3.10.0040.03611.73
5.3.00.0060.03511.72
5.2.170.0030.0329.22
5.2.160.0040.0299.22
5.2.150.0010.0349.23
5.2.140.0020.0339.22
5.2.130.0050.0299.18
5.2.120.0050.0319.18
5.2.110.0030.0319.19
5.2.100.0040.0299.18
5.2.90.0040.0299.18
5.2.80.0060.0309.17
5.2.70.0050.0309.18
5.2.60.0070.0279.13
5.2.50.0050.0299.10
5.2.40.0030.0309.08
5.2.30.0040.0309.05
5.2.20.0050.0299.04
5.2.10.0040.0288.95
5.2.00.0070.0298.80
5.1.60.0030.0258.09
5.1.50.0060.0238.09
5.1.40.0060.0268.07
5.1.30.0080.0288.41
5.1.20.0040.0268.44
5.1.10.0050.0258.17
5.1.00.0060.0238.17
5.0.50.0030.0206.64
5.0.40.0030.0196.50
5.0.30.0040.0306.32
5.0.20.0030.0206.28
5.0.10.0040.0196.26
5.0.00.0040.0296.25
4.4.90.0020.0154.78
4.4.80.0040.0134.75
4.4.70.0050.0124.75
4.4.60.0020.0154.76
4.4.50.0010.0174.77
4.4.40.0050.0274.71
4.4.30.0030.0164.76
4.4.20.0020.0164.85
4.4.10.0040.0144.85
4.4.00.0040.0314.76
4.3.110.0060.0194.66
4.3.100.0020.0204.67
4.3.90.0020.0204.63
4.3.80.0030.0254.58
4.3.70.0000.0174.63
4.3.60.0020.0154.63
4.3.50.0010.0174.63
4.3.40.0020.0244.53
4.3.30.0010.0163.28
4.3.20.0000.0183.26
4.3.10.0000.0183.22
4.3.00.0100.0138.92

preferences:
49.46 ms | 401 KiB | 5 Q