3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace www; class Base { public function ec() { echo "1111";} } class A extends namespace\Base {} namespace ttt; class Base { public function ec() { echo "222";} } use \www\A as C, \ttt\A; class B extends C {} $a = new \ttt\B(); $a->ec();

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.0150.00616.50
8.3.50.0080.00916.31
8.3.40.0110.00418.77
8.3.30.0090.00918.67
8.3.20.0000.00818.65
8.3.10.0060.00320.35
8.3.00.0040.00719.25
8.2.180.0030.01418.41
8.2.170.0120.00322.96
8.2.160.0100.00320.35
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00819.76
8.2.110.0060.00321.04
8.2.100.0030.00717.78
8.2.90.0090.00019.47
8.2.80.0050.00219.42
8.2.70.0040.00417.50
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0020.00518.03
8.2.30.0000.00717.90
8.2.20.0000.00717.55
8.2.10.0040.00417.66
8.2.00.0040.00717.62
8.1.280.0120.00325.92
8.1.270.0090.00924.66
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0110.00020.69
8.1.230.0100.00021.04
8.1.220.0030.00517.74
8.1.210.0090.00318.78
8.1.200.0090.00017.00
8.1.190.0020.00517.53
8.1.180.0030.00518.10
8.1.170.0000.00918.76
8.1.160.0000.00718.73
8.1.150.0050.00218.55
8.1.140.0040.00817.31
8.1.130.0030.00317.68
8.1.120.0000.00817.41
8.1.110.0000.00717.24
8.1.100.0030.00417.47
8.1.90.0040.00417.37
8.1.80.0000.00717.40
8.1.70.0030.00317.38
8.1.60.0000.00717.54
8.1.50.0040.00417.36
8.1.40.0040.00417.57
8.1.30.0020.00517.52
8.1.20.0000.00917.55
8.1.10.0000.00717.63
8.1.00.0000.00717.35
8.0.300.0080.00020.08
8.0.290.0040.00416.75
8.0.280.0070.00018.30
8.0.270.0040.00417.17
8.0.260.0060.00016.68
8.0.250.0000.00816.95
8.0.240.0040.00416.89
8.0.230.0030.00316.87
8.0.220.0040.00416.91
8.0.210.0000.00716.80
8.0.200.0070.00016.89
8.0.190.0000.00716.75
8.0.180.0000.00716.74
8.0.170.0000.00716.69
8.0.160.0000.00716.84
8.0.150.0060.00316.77
8.0.140.0060.00416.78
8.0.130.0000.00513.21
8.0.120.0000.00816.77
8.0.110.0000.00716.70
8.0.100.0070.00016.70
8.0.90.0000.00716.65
8.0.80.0110.00416.88
8.0.70.0000.00716.86
8.0.60.0040.00416.69
8.0.50.0040.00416.81
8.0.30.0070.01517.12
8.0.20.0100.01017.00
8.0.10.0070.00016.81
8.0.00.0120.00816.72
7.4.330.0030.00312.91
7.4.320.0030.00316.59
7.4.300.0030.00316.51
7.4.290.0040.00416.62
7.4.280.0000.00716.49
7.4.270.0030.00416.51
7.4.260.0000.00613.28
7.4.250.0030.00416.59
7.4.240.0030.00316.60
7.4.230.0030.00416.38
7.4.220.0150.00916.40
7.4.210.0080.00916.53
7.4.200.0070.00016.57
7.4.190.0000.00716.49
7.4.160.0040.01216.57
7.4.150.0030.01316.53
7.4.140.0120.00916.39
7.4.130.0100.00916.45
7.4.120.0100.00716.41
7.4.110.0130.00316.64
7.4.100.0060.01316.64
7.4.90.0100.00716.57
7.4.80.0060.01216.66
7.4.70.0100.00616.48
7.4.60.0080.01316.28
7.4.50.0000.00816.38
7.4.40.0030.00716.46
7.4.30.0130.00316.58
7.4.10.0100.00715.17
7.4.00.0070.00814.94
7.3.330.0060.00013.30
7.3.320.0030.00313.16
7.3.310.0070.00016.13
7.3.300.0030.00316.22
7.3.290.0060.00916.25
7.3.280.0100.00516.23
7.3.270.0190.00316.20
7.3.260.0050.01516.37
7.3.250.0110.00616.38
7.3.240.0070.01016.20
7.3.230.0030.01316.30
7.3.210.0000.01716.49
7.3.200.0100.00619.39
7.3.190.0110.00616.60
7.3.180.0060.01016.43
7.3.170.0080.00816.59
7.3.160.0110.00416.43
7.3.130.0090.00614.82
7.3.120.0080.00814.63
7.3.110.0050.01314.67
7.3.100.0070.01014.98
7.3.90.0080.00714.76
7.3.80.0050.01114.85
7.3.70.0100.00314.60
7.3.60.0030.00914.62
7.3.50.0040.00714.74
7.3.40.0030.01214.72
7.3.30.0070.00714.59
7.3.20.0050.00816.47
7.3.10.0070.00516.50
7.3.00.0010.01116.49
7.2.330.0030.01416.79
7.2.320.0140.01016.59
7.2.310.0030.01616.82
7.2.300.0060.01216.71
7.2.290.0070.01016.64
7.2.260.0060.00914.93
7.2.250.0050.01214.75
7.2.240.0080.01014.99
7.2.230.0090.00615.18
7.2.220.0070.00914.98
7.2.210.0090.00915.16
7.2.200.0050.01115.03
7.2.190.0030.01114.92
7.2.180.0080.00715.01
7.2.170.0070.01014.89
7.2.160.0030.00714.59
7.2.150.0000.01016.94
7.2.140.0060.00916.78
7.2.130.0030.01516.69
7.2.120.0080.00816.89
7.2.110.0030.01017.05
7.2.100.0070.01117.07
7.2.90.0040.01116.86
7.2.80.0030.01017.02
7.2.70.0060.00616.88
7.2.60.0100.00716.95
7.2.50.0040.01216.99
7.2.40.0000.01416.84
7.2.30.0110.00416.87
7.2.20.0090.00616.72
7.2.10.0120.00316.96
7.2.00.0060.01118.06
7.1.330.0040.00915.71
7.1.320.0020.00915.39
7.1.310.0090.00715.53
7.1.300.0050.01015.54
7.1.290.0060.00715.58
7.1.280.0050.00415.59
7.1.270.0080.00115.74
7.1.260.0050.00615.36
7.1.250.0060.01015.50
7.1.240.0030.01415.71
7.1.230.0060.00615.75
7.1.220.0000.00815.40
7.1.210.0040.00415.74
7.1.200.0030.01315.43
7.1.190.0140.00015.60
7.1.180.0100.00015.69
7.1.170.0000.01515.86
7.1.160.0070.00715.60
7.1.150.0040.00815.82
7.1.140.0080.00615.63
7.1.130.0040.01115.75
7.1.120.0080.00415.69
7.1.110.0070.00715.64
7.1.100.0070.00716.77
7.1.90.0090.00615.64
7.1.80.0000.01415.49
7.1.70.0040.00916.36
7.1.60.0100.01017.46
7.1.50.0030.01516.11
7.1.40.0090.00615.86
7.1.30.0040.01415.43
7.1.20.0030.00615.36
7.1.10.0000.01315.73
7.1.00.0020.04419.02
7.0.330.0090.00415.09
7.0.320.0090.00315.38
7.0.310.0000.01415.23
7.0.300.0060.00915.28
7.0.290.0030.01215.39
7.0.280.0030.00615.50
7.0.270.0030.01015.40
7.0.260.0060.00615.34
7.0.250.0090.00315.32
7.0.240.0080.00615.38
7.0.230.0070.01015.18
7.0.220.0040.01115.38
7.0.210.0030.01315.23
7.0.200.0030.00816.09
7.0.190.0060.00615.37
7.0.180.0070.01115.35
7.0.170.0070.01015.34
7.0.160.0030.00615.31
7.0.150.0050.00315.16
7.0.140.0070.03818.72
7.0.130.0000.01115.49
7.0.120.0060.03518.75
7.0.110.0000.01215.39
7.0.100.0070.00715.50
7.0.90.0040.01015.40
7.0.80.0080.00015.00
7.0.70.0030.01015.21
7.0.60.0170.03717.69
7.0.50.0000.03416.75
7.0.40.0050.02515.53
7.0.30.0050.04215.55
7.0.20.0110.03515.64
7.0.10.0070.04515.60
7.0.00.0110.02015.47
5.6.400.0000.01314.51
5.6.390.0100.00014.37
5.6.380.0030.01014.20
5.6.370.0130.00314.29
5.6.360.0100.00014.39
5.6.350.0030.00614.23
5.6.340.0000.00914.39
5.6.330.0090.00614.45
5.6.320.0090.00614.13
5.6.310.0030.01014.21
5.6.300.0030.01014.30
5.6.290.0070.00714.21
5.6.280.0050.04017.62
5.6.270.0090.00014.02
5.6.260.0080.00414.20
5.6.250.0110.00014.11
5.6.240.0110.00314.59
5.6.230.0040.00414.41
5.6.220.0000.01114.52
5.6.210.0030.02917.36
5.6.200.0030.02816.21
5.6.190.0050.04016.14
5.6.180.0030.03216.28
5.6.170.0080.04316.35
5.6.160.0050.04516.36
5.6.150.0160.03516.19
5.6.140.0000.04116.25
5.6.130.0080.02916.31
5.6.120.0050.03616.24
5.6.110.0110.04116.30
5.6.100.0080.03916.18
5.6.90.0020.03316.23
5.6.80.0020.02715.83
5.6.70.0100.03815.82
5.6.60.0080.03315.99
5.6.50.0030.02615.83
5.6.40.0040.04115.93
5.6.30.0000.03516.04
5.6.20.0080.03815.81
5.6.10.0040.02915.98
5.6.00.0050.02615.81
5.5.380.0080.00814.21
5.5.370.0100.00714.19
5.5.360.0090.00614.51
5.5.350.0220.02717.37
5.5.340.0030.02616.24
5.5.330.0060.03816.06
5.5.320.0090.03815.98
5.5.310.0050.03715.99
5.5.300.0070.04316.09
5.5.290.0040.04516.09
5.5.280.0070.02616.18
5.5.270.0060.04816.21
5.5.260.0120.03916.10
5.5.250.0070.04315.93
5.5.240.0080.03015.83
5.5.230.0080.04315.66
5.5.220.0030.04415.84
5.5.210.0070.04215.71
5.5.200.0110.03315.75
5.5.190.0090.04115.86
5.5.180.0030.02515.81
5.5.170.0060.00613.96
5.5.160.0020.02715.70
5.5.150.0070.03215.67
5.5.140.0070.02415.71
5.5.130.0000.03115.75
5.5.120.0080.02115.75
5.5.110.0060.02915.74
5.5.100.0090.02915.71
5.5.90.0050.03115.65
5.5.80.0070.04015.71
5.5.70.0070.04015.69
5.5.60.0050.03115.67
5.5.50.0080.03315.63
5.5.40.0070.02515.68
5.5.30.0050.03915.58
5.5.20.0100.03215.75
5.5.10.0070.04215.77
5.5.00.0020.03915.60
5.4.450.0020.03116.09
5.4.440.0030.04816.15
5.4.430.0060.03216.16
5.4.420.0040.03916.17
5.4.410.0080.03516.07
5.4.400.0100.03316.02
5.4.390.0060.04216.09
5.4.380.0070.03815.98
5.4.370.0020.03315.93
5.4.360.0070.04116.02
5.4.350.0050.03715.99
5.4.340.0020.02315.98
5.4.330.0040.00412.90
5.4.320.0050.04216.01
5.4.310.0060.03615.99
5.4.300.0070.01715.98
5.4.290.0070.02116.01
5.4.280.0060.04015.97
5.4.270.0050.02315.96
5.4.260.0110.03516.02
5.4.250.0050.04115.97
5.4.240.0030.04316.08
5.4.230.0090.02615.97
5.4.220.0080.03815.96
5.4.210.0020.04116.08
5.4.200.0070.03716.01
5.4.190.0010.04615.87
5.4.180.0050.02615.97
5.4.170.0050.04215.96
5.4.160.0030.04015.95
5.4.150.0020.03216.00
5.4.140.0040.02114.65
5.4.130.0060.03814.65
5.4.120.0060.02614.62
5.4.110.0100.03314.72
5.4.100.0070.03214.66
5.4.90.0000.04214.71
5.4.80.0050.03814.64
5.4.70.0050.03714.71
5.4.60.0030.03614.59
5.4.50.0030.03914.64
5.4.40.0070.02314.67
5.4.30.0030.04214.67
5.4.20.0060.03614.66
5.4.10.0030.04014.55
5.4.00.0020.04314.36
5.3.290.0000.03213.80
5.3.280.0070.02013.86
5.3.270.0050.04313.73
5.3.260.0020.03913.79
5.3.250.0050.03813.77
5.3.240.0020.02213.77
5.3.230.0040.02713.73
5.3.220.0080.03613.79
5.3.210.0100.03813.76
5.3.200.0070.02813.73
5.3.190.0080.03013.72
5.3.180.0050.03713.74
5.3.170.0080.03713.74
5.3.160.0080.03313.78
5.3.150.0040.04113.75
5.3.140.0050.03213.71
5.3.130.0070.03113.83
5.3.120.0050.03213.72
5.3.110.0000.04013.75
5.3.100.0020.04213.48
5.3.90.0050.03513.43
5.3.80.0020.04413.46
5.3.70.0030.03913.46
5.3.60.0020.03213.49
5.3.50.0030.02613.46
5.3.40.0050.02613.35
5.3.30.0070.02713.42
5.3.20.0050.04013.24
5.3.10.0090.03513.27
5.3.00.0030.03513.37
5.2.170.0000.03711.09
5.2.160.0070.03310.98
5.2.150.0000.06011.12
5.2.140.0030.04711.17
5.2.130.0030.03710.85
5.2.120.0100.05711.25
5.2.110.0030.06011.09
5.2.100.0070.06011.04
5.2.90.0030.04710.87
5.2.80.0100.05310.92
5.2.70.0030.03710.91
5.2.60.0030.06311.20
5.2.50.0070.04311.02
5.2.40.0070.05710.98
5.2.30.0000.04310.80
5.2.20.0000.05010.91
5.2.10.0030.05710.86
5.2.00.0100.04310.75
5.1.60.0100.0479.95
5.1.50.0030.03310.07
5.1.40.0100.0509.93
5.1.30.0100.05710.38
5.1.20.0000.05710.35
5.1.10.0100.05010.14
5.1.00.0000.0609.90
5.0.50.0000.0338.68
5.0.40.0030.0308.62
5.0.30.0000.0678.62
5.0.20.0030.0308.62
5.0.10.0030.0278.62
5.0.00.0000.0778.62
4.4.90.0000.0378.62
4.4.80.0100.0308.62
4.4.70.0030.0338.62
4.4.60.0000.0338.62
4.4.50.0000.0378.62
4.4.40.0000.0508.62
4.4.30.0000.0208.62
4.4.20.0070.0278.62
4.4.10.0000.0308.62
4.4.00.0030.0378.62
4.3.110.0030.0378.62
4.3.100.0000.0378.62
4.3.90.0070.0338.62
4.3.80.0030.0278.62
4.3.70.0030.0238.62
4.3.60.0070.0138.62
4.3.50.0000.0178.62
4.3.40.0000.0478.62
4.3.30.0000.0408.62
4.3.20.0000.0438.62
4.3.10.0000.0378.62
4.3.00.0000.0308.62

preferences:
40.11 ms | 401 KiB | 5 Q