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 A; class B extends ttt\A {} $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.40.0100.00718.97
8.3.30.0030.01218.89
8.3.20.0030.00618.76
8.3.10.0050.00518.59
8.3.00.0070.00419.38
8.2.170.0110.00322.96
8.2.160.0070.01020.28
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00420.70
8.2.110.0030.00620.48
8.2.100.0070.00417.91
8.2.90.0040.00419.13
8.2.80.0070.00019.35
8.2.70.0060.00617.50
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00319.48
8.2.30.0050.00317.81
8.2.20.0070.00317.72
8.2.10.0040.00417.75
8.2.00.0000.00717.80
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00623.70
8.1.230.0090.00320.87
8.1.220.0040.00418.77
8.1.210.0030.00619.00
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0090.00318.10
8.1.170.0040.00418.84
8.1.160.0000.00718.96
8.1.150.0070.00018.45
8.1.140.0000.00717.30
8.1.130.0040.00419.18
8.1.120.0070.00017.39
8.1.110.0040.00417.40
8.1.100.0040.00417.35
8.1.90.0030.00317.30
8.1.80.0030.00317.27
8.1.70.0070.00017.37
8.1.60.0000.00917.48
8.1.50.0060.00317.36
8.1.40.0000.00817.45
8.1.30.0030.00617.54
8.1.20.0050.00217.61
8.1.10.0000.00817.52
8.1.00.0060.00317.49
8.0.300.0000.00719.90
8.0.290.0000.00716.75
8.0.280.0080.00018.57
8.0.270.0000.00717.24
8.0.260.0000.00616.99
8.0.250.0000.00716.89
8.0.240.0040.00416.89
8.0.230.0000.00717.04
8.0.220.0070.00017.00
8.0.210.0000.00716.96
8.0.200.0060.00017.02
8.0.190.0020.00517.02
8.0.180.0080.00416.89
8.0.170.0000.00916.92
8.0.160.0000.00716.98
8.0.150.0000.00716.92
8.0.140.0000.00816.99
8.0.130.0050.00013.37
8.0.120.0000.01016.89
8.0.110.0070.00016.91
8.0.100.0070.00316.75
8.0.90.0050.00216.94
8.0.80.0030.01317.02
8.0.70.0000.00716.84
8.0.60.0060.00316.82
8.0.50.0060.00316.95
8.0.30.0180.01816.87
8.0.20.0110.01617.04
8.0.10.0060.00317.00
8.0.00.0100.00816.80
7.4.330.0000.00512.94
7.4.320.0030.00316.31
7.4.300.0030.00316.55
7.4.290.0000.00716.51
7.4.280.0000.00916.55
7.4.270.0040.00416.57
7.4.260.0060.00013.14
7.4.250.0040.00416.50
7.4.240.0030.00316.53
7.4.230.0000.01016.34
7.4.220.0060.01516.59
7.4.210.0030.01716.53
7.4.200.0030.00616.52
7.4.190.0070.00016.30
7.4.160.0070.01016.58
7.4.150.0110.00616.53
7.4.140.0170.00416.51
7.4.130.0090.00916.48
7.4.120.0080.00916.64
7.4.110.0110.01116.57
7.4.100.0070.01016.59
7.4.90.0190.00316.48
7.4.80.0110.00719.39
7.4.70.0100.00716.36
7.4.60.0100.00716.46
7.4.50.0000.00416.46
7.4.40.0070.00716.47
7.4.30.0110.00716.34
7.4.10.0040.01414.87
7.4.00.0080.00814.94
7.3.330.0030.00413.37
7.3.320.0040.00413.25
7.3.310.0050.00216.15
7.3.300.0050.00216.18
7.3.290.0060.00816.31
7.3.280.0080.00816.29
7.3.270.0090.00916.50
7.3.260.0100.00716.34
7.3.250.0100.00916.46
7.3.240.0070.01116.41
7.3.230.0150.00616.29
7.3.210.0090.01216.42
7.3.200.0040.01516.38
7.3.190.0100.01016.31
7.3.180.0040.01616.40
7.3.170.0080.00816.48
7.3.160.0120.00616.48
7.3.130.0000.01814.73
7.3.120.0070.00714.93
7.3.110.0090.00914.84
7.3.100.0070.00714.64
7.3.90.0070.01014.48
7.3.80.0030.01014.91
7.3.70.0060.00614.82
7.3.60.0080.00814.56
7.3.50.0040.01114.68
7.3.40.0000.01714.74
7.3.30.0040.00814.84
7.3.20.0030.00916.59
7.3.10.0040.00716.49
7.3.00.0090.00616.62
7.2.330.0120.01116.47
7.2.320.0130.00316.40
7.2.310.0130.00616.23
7.2.300.0080.01516.41
7.2.290.0100.00716.38
7.2.260.0040.01614.97
7.2.250.0090.00915.04
7.2.240.0030.01014.52
7.2.230.0090.00614.95
7.2.220.0090.00914.88
7.2.210.0000.01515.15
7.2.200.0060.00614.79
7.2.190.0000.01314.98
7.2.180.0070.00714.70
7.2.170.0090.00615.05
7.2.160.0000.01314.96
7.2.150.0030.01016.72
7.2.140.0110.00416.59
7.2.130.0070.00716.63
7.2.120.0070.01016.64
7.2.110.0070.00716.70
7.2.100.0070.01016.87
7.2.90.0040.01116.68
7.2.80.0040.00816.76
7.2.70.0100.00616.87
7.2.60.0090.00616.95
7.2.50.0130.00016.97
7.2.40.0040.01216.74
7.2.30.0030.00616.42
7.2.20.0030.00916.76
7.2.10.0060.00916.60
7.2.00.0000.01218.03
7.1.330.0030.01215.86
7.1.320.0060.00615.71
7.1.310.0000.00815.80
7.1.300.0070.00715.35
7.1.290.0060.00915.57
7.1.280.0000.00815.59
7.1.270.0040.01215.51
7.1.260.0030.01015.76
7.1.250.0060.00915.66
7.1.240.0000.01415.51
7.1.230.0060.00315.42
7.1.220.0040.00415.44
7.1.210.0080.00415.52
7.1.200.0040.00915.42
7.1.190.0000.00915.40
7.1.180.0070.00715.47
7.1.170.0040.00415.55
7.1.160.0040.00715.55
7.1.150.0030.00915.55
7.1.140.0070.00715.63
7.1.130.0030.00715.69
7.1.120.0100.00315.46
7.1.110.0060.00815.52
7.1.100.0150.01216.47
7.1.90.0060.00915.72
7.1.80.0030.01015.84
7.1.70.0030.00616.18
7.1.60.0050.01116.52
7.1.50.0090.00516.24
7.1.40.0030.00915.67
7.1.30.0070.00715.71
7.1.20.0090.00615.63
7.1.10.0030.00715.52
7.1.00.0050.03319.00
7.0.330.0000.01315.31
7.0.320.0040.00815.09
7.0.310.0000.01115.30
7.0.300.0060.00615.08
7.0.290.0120.00015.27
7.0.280.0100.00315.25
7.0.270.0060.00615.31
7.0.260.0080.00315.37
7.0.250.0030.01015.27
7.0.240.0000.01015.21
7.0.230.0000.01415.40
7.0.220.0030.00715.26
7.0.210.0000.01315.27
7.0.200.0100.00315.75
7.0.190.0070.00715.23
7.0.180.0030.01115.35
7.0.170.0070.00715.40
7.0.160.0060.00915.08
7.0.150.0060.00615.31
7.0.140.0050.03918.73
7.0.130.0000.01115.15
7.0.120.0050.04018.75
7.0.110.0060.00915.40
7.0.100.0100.00315.26
7.0.90.0070.00315.32
7.0.80.0070.00715.29
7.0.70.0030.01315.05
7.0.60.0130.04117.37
7.0.50.0040.04016.51
7.0.40.0100.03816.76
7.0.30.0090.04316.88
7.0.20.0090.03316.59
7.0.10.0140.03816.61
7.0.00.0120.03816.81
5.6.400.0090.00314.28
5.6.390.0030.01014.26
5.6.380.0040.00714.38
5.6.370.0030.01014.14
5.6.360.0040.00814.52
5.6.350.0040.00713.88
5.6.340.0030.01414.02
5.6.330.0030.01214.48
5.6.320.0040.00914.01
5.6.310.0040.01114.24
5.6.300.0060.00914.20
5.6.290.0030.00914.15
5.6.280.0050.03817.60
5.6.270.0060.00914.12
5.6.260.0030.00614.25
5.6.250.0030.01214.28
5.6.240.0000.01214.44
5.6.230.0070.00714.24
5.6.220.0070.01014.45
5.6.210.0060.02117.33
5.6.200.0030.04916.23
5.6.190.0080.02917.37
5.6.180.0030.03017.25
5.6.170.0080.03317.36
5.6.160.0060.04817.31
5.6.150.0080.03317.30
5.6.140.0130.03817.20
5.6.130.0150.04117.31
5.6.120.0080.03317.18
5.6.110.0060.03817.03
5.6.100.0050.03517.34
5.6.90.0030.03117.18
5.6.80.0020.02817.00
5.6.70.0050.03216.85
5.6.60.0030.04517.02
5.6.50.0000.03316.90
5.6.40.0050.03817.00
5.6.30.0050.04416.89
5.6.20.0030.04317.10
5.6.10.0050.02416.74
5.6.00.0030.02516.77
5.5.380.0030.00914.12
5.5.370.0000.01313.94
5.5.360.0030.01314.22
5.5.350.0120.04817.29
5.5.340.0080.03816.02
5.5.330.0030.02617.10
5.5.320.0050.03117.23
5.5.310.0080.03817.31
5.5.300.0060.04317.02
5.5.290.0010.04117.08
5.5.280.0110.02817.12
5.5.270.0070.03817.02
5.5.260.0080.03517.22
5.5.250.0070.03816.94
5.5.240.0110.02316.74
5.5.230.0110.03916.71
5.5.220.0030.03216.74
5.5.210.0090.02316.82
5.5.200.0030.04416.74
5.5.190.0030.03116.84
5.5.180.0080.02216.59
5.5.170.0100.00714.01
5.5.160.0050.03516.78
5.5.150.0040.02716.64
5.5.140.0070.04316.77
5.5.130.0070.02516.83
5.5.120.0060.02316.54
5.5.110.0100.02316.63
5.5.100.0070.04216.53
5.5.90.0110.04116.70
5.5.80.0050.03116.78
5.5.70.0050.03316.57
5.5.60.0140.03516.68
5.5.50.0110.03816.56
5.5.40.0050.02516.53
5.5.30.0080.02216.73
5.5.20.0080.04016.43
5.5.10.0080.04516.51
5.5.00.0060.04516.56
5.4.450.0070.03815.20
5.4.440.0050.03215.20
5.4.430.0050.04215.14
5.4.420.0050.02915.21
5.4.410.0100.01515.19
5.4.400.0070.04015.17
5.4.390.0030.04515.17
5.4.380.0030.03515.12
5.4.370.0050.02315.12
5.4.360.0050.03115.17
5.4.350.0020.02615.15
5.4.340.0050.03715.17
5.4.330.0100.00311.10
5.4.320.0070.02015.13
5.4.310.0060.02615.04
5.4.300.0030.02714.97
5.4.290.0010.02815.17
5.4.280.0120.01514.98
5.4.270.0050.02215.11
5.4.260.0030.02514.97
5.4.250.0050.02314.98
5.4.240.0080.01715.17
5.4.230.0040.03614.97
5.4.220.0090.03915.05
5.4.210.0060.02615.12
5.4.200.0070.02515.04
5.4.190.0070.03715.12
5.4.180.0110.03715.05
5.4.170.0050.02915.02
5.4.160.0090.02314.97
5.4.150.0020.02715.10
5.4.140.0100.03813.75
5.4.130.0120.01813.78
5.4.120.0020.03013.76
5.4.110.0060.03913.72
5.4.100.0030.02513.91
5.4.90.0080.03213.84
5.4.80.0080.02013.74
5.4.70.0030.03113.73
5.4.60.0050.04013.69
5.4.50.0030.02313.74
5.4.40.0090.01713.74
5.4.30.0120.03513.78
5.4.20.0050.02813.77
5.4.10.0080.03513.75
5.4.00.0080.03613.45
5.3.290.0060.03612.90
5.3.280.0050.02312.85
5.3.270.0020.03112.85
5.3.260.0110.03512.94
5.3.250.0080.04112.89
5.3.240.0130.02812.93
5.3.230.0050.03612.88
5.3.220.0080.02412.83
5.3.210.0060.03512.83
5.3.200.0020.02512.85
5.3.190.0060.04112.85
5.3.180.0060.03412.91
5.3.170.0040.03112.84
5.3.160.0070.03712.79
5.3.150.0050.04112.86
5.3.140.0040.02712.85
5.3.130.0050.02312.83
5.3.120.0080.03412.83
5.3.110.0060.02812.84
5.3.100.0030.02512.57
5.3.90.0000.02412.58
5.3.80.0030.03212.59
5.3.70.0040.02712.51
5.3.60.0020.02512.56
5.3.50.0070.02212.52
5.3.40.0120.03212.60
5.3.30.0050.03712.53
5.3.20.0060.03912.40
5.3.10.0040.03712.39
5.3.00.0050.03512.37
5.2.170.0100.06011.11
5.2.160.0100.03011.22
5.2.150.0030.06711.02
5.2.140.0000.04711.07
5.2.130.0100.05311.12
5.2.120.0070.04311.03
5.2.110.0030.03310.98
5.2.100.0030.04710.93
5.2.90.0100.03010.96
5.2.80.0030.03310.93
5.2.70.0030.05711.07
5.2.60.0030.04311.03
5.2.50.0030.03710.94
5.2.40.0030.05710.92
5.2.30.0030.04710.85
5.2.20.0030.05710.80
5.2.10.0030.06010.86
5.2.00.0030.03310.76
5.1.60.0000.0309.98
5.1.50.0070.0379.96
5.1.40.0070.03310.05
5.1.30.0070.05710.19
5.1.20.0070.02710.40
5.1.10.0030.02710.05
5.1.00.0000.06010.21
5.0.50.0070.0378.59
5.0.40.0000.0478.36
5.0.30.0000.0678.28
5.0.20.0000.0238.16
5.0.10.0070.0178.15
5.0.00.0000.0338.20
4.4.90.0000.0337.35
4.4.80.0030.0237.35
4.4.70.0100.0277.35
4.4.60.0030.0377.35
4.4.50.0000.0407.35
4.4.40.0030.0237.35
4.4.30.0000.0237.35
4.4.20.0000.0207.35
4.4.10.0000.0207.35
4.4.00.0070.0307.35
4.3.110.0100.0207.35
4.3.100.0030.0207.35
4.3.90.0070.0307.35
4.3.80.0030.0277.35
4.3.70.0000.0177.35
4.3.60.0000.0337.35
4.3.50.0000.0207.35
4.3.40.0030.0237.35
4.3.30.0000.0237.35
4.3.20.0030.0207.35
4.3.10.0000.0377.35
4.3.00.0030.0137.35

preferences:
38.79 ms | 400 KiB | 5 Q