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 \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.0140.00418.82
8.3.30.0140.00018.67
8.3.20.0030.00618.85
8.3.10.0000.00918.81
8.3.00.0090.00019.51
8.2.170.0100.00622.96
8.2.160.0070.01021.06
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00020.86
8.2.110.0000.00919.39
8.2.100.0040.00717.84
8.2.90.0030.00719.48
8.2.80.0070.00019.28
8.2.70.0030.00517.63
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0100.00018.17
8.2.30.0040.00418.09
8.2.20.0000.00817.72
8.2.10.0080.00017.66
8.2.00.0000.01117.71
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.67
8.1.230.0040.00721.04
8.1.220.0000.00817.74
8.1.210.0000.00819.04
8.1.200.0040.00417.22
8.1.190.0040.00417.50
8.1.180.0030.00618.10
8.1.170.0040.00418.90
8.1.160.0040.00418.89
8.1.150.0060.00318.54
8.1.140.0030.00517.30
8.1.130.0070.00017.75
8.1.120.0040.00417.38
8.1.110.0070.00017.45
8.1.100.0000.00817.29
8.1.90.0040.00417.31
8.1.80.0040.00417.43
8.1.70.0030.00517.38
8.1.60.0060.00317.39
8.1.50.0040.00417.30
8.1.40.0030.00617.34
8.1.30.0040.00417.48
8.1.20.0000.00717.58
8.1.10.0070.00017.52
8.1.00.0000.00717.33
8.0.300.0070.00019.84
8.0.290.0060.00316.63
8.0.280.0070.00018.48
8.0.270.0000.00717.25
8.0.260.0000.00716.93
8.0.250.0020.00516.93
8.0.240.0030.00316.91
8.0.230.0030.00316.93
8.0.220.0030.00316.87
8.0.210.0000.00716.89
8.0.200.0030.00317.00
8.0.190.0020.00516.89
8.0.180.0000.00716.98
8.0.170.0030.00616.93
8.0.160.0000.00716.92
8.0.150.0030.00616.92
8.0.140.0030.00616.90
8.0.130.0000.00513.47
8.0.120.0000.00716.94
8.0.110.0050.00216.84
8.0.100.0000.00716.90
8.0.90.0000.00716.91
8.0.80.0110.00916.98
8.0.70.0000.00716.96
8.0.60.0020.00516.78
8.0.50.0000.00816.85
8.0.30.0190.00517.12
8.0.20.0110.00817.20
8.0.10.0080.00016.86
8.0.00.0080.01516.92
7.4.330.0000.00512.92
7.4.320.0000.00616.46
7.4.300.0000.00616.54
7.4.290.0000.00716.38
7.4.280.0000.00816.42
7.4.270.0060.00016.40
7.4.260.0000.00513.26
7.4.250.0000.00816.54
7.4.240.0020.00516.49
7.4.230.0070.00016.47
7.4.220.0150.00916.49
7.4.210.0080.00916.50
7.4.200.0030.00316.47
7.4.190.0040.00416.42
7.4.160.0110.01116.73
7.4.150.0060.01216.78
7.4.140.0080.00816.51
7.4.130.0090.00916.54
7.4.120.0050.01216.45
7.4.110.0140.00316.61
7.4.100.0080.00816.35
7.4.90.0130.00616.54
7.4.80.0080.00919.39
7.4.70.0130.00716.71
7.4.60.0070.01016.42
7.4.50.0040.00816.27
7.4.40.0040.01516.35
7.4.30.0090.00616.29
7.4.10.0000.01315.07
7.4.00.0080.01014.89
7.3.330.0000.00613.26
7.3.320.0030.00313.16
7.3.310.0030.00316.35
7.3.300.0030.00316.31
7.3.290.0120.00416.28
7.3.280.0100.00716.27
7.3.270.0170.00016.42
7.3.260.0090.01216.39
7.3.250.0110.01116.40
7.3.240.0120.00616.48
7.3.230.0070.01016.49
7.3.210.0030.01316.43
7.3.200.0100.01016.62
7.3.190.0130.01016.46
7.3.180.0070.01416.45
7.3.170.0070.01016.30
7.3.160.0120.00916.34
7.3.130.0120.00314.84
7.3.120.0030.01214.92
7.3.110.0100.00714.92
7.3.100.0100.00714.69
7.3.90.0060.00314.93
7.3.80.0080.00814.98
7.3.70.0080.00414.63
7.3.60.0040.00814.84
7.3.50.0040.00814.41
7.3.40.0060.00614.86
7.3.30.0040.01214.89
7.3.20.0060.00816.72
7.3.10.0080.00416.34
7.3.00.0030.00716.59
7.2.330.0150.00516.66
7.2.320.0080.00816.52
7.2.310.0060.01616.39
7.2.300.0070.01116.38
7.2.290.0030.01316.45
7.2.260.0070.01115.14
7.2.250.0040.01214.79
7.2.240.0060.00915.03
7.2.230.0110.00415.15
7.2.220.0030.00915.12
7.2.210.0090.00615.04
7.2.200.0090.00614.79
7.2.190.0060.00614.61
7.2.180.0030.00914.97
7.2.170.0120.00315.02
7.2.160.0080.00414.81
7.2.150.0000.01417.00
7.2.140.0090.00316.67
7.2.130.0000.01216.57
7.2.120.0070.00416.47
7.2.110.0080.00816.61
7.2.100.0060.00616.53
7.2.90.0070.00716.93
7.2.80.0090.00516.63
7.2.70.0000.01416.59
7.2.60.0070.00816.71
7.2.50.0040.00816.45
7.2.40.0040.01216.79
7.2.30.0040.01116.81
7.2.20.0060.01316.86
7.2.10.0060.00616.84
7.2.00.0000.01016.61
7.1.330.0100.00315.67
7.1.320.0060.00615.32
7.1.310.0090.00615.76
7.1.300.0090.00015.79
7.1.290.0030.01015.51
7.1.280.0090.00315.35
7.1.270.0030.00615.55
7.1.260.0050.00315.65
7.1.250.0040.01115.64
7.1.240.0000.01415.60
7.1.230.0030.01015.68
7.1.220.0030.01015.63
7.1.210.0000.01315.70
7.1.200.0040.00515.53
7.1.190.0060.00615.52
7.1.180.0090.00015.72
7.1.170.0080.00415.64
7.1.160.0030.00915.63
7.1.150.0030.00615.58
7.1.140.0100.00315.80
7.1.130.0070.00315.55
7.1.120.0040.01115.65
7.1.110.0060.00615.41
7.1.100.0100.00715.62
7.1.90.0040.00415.32
7.1.80.0000.01315.30
7.1.70.0030.00516.32
7.1.60.0070.01217.42
7.1.50.0060.01116.20
7.1.40.0030.01015.73
7.1.30.0030.00915.50
7.1.20.0030.01015.52
7.1.10.0120.00415.75
7.1.00.0020.03319.11
7.0.330.0060.00315.30
7.0.320.0070.00715.33
7.0.310.0060.00615.06
7.0.300.0030.00915.34
7.0.290.0000.01015.25
7.0.280.0090.00914.99
7.0.270.0000.01115.32
7.0.260.0100.00015.46
7.0.250.0040.00715.25
7.0.240.0030.01015.18
7.0.230.0070.00715.40
7.0.220.0040.00415.26
7.0.210.0060.00915.37
7.0.200.0020.01015.92
7.0.190.0030.00715.17
7.0.180.0030.00715.35
7.0.170.0000.00915.32
7.0.160.0070.01015.45
7.0.150.0090.00915.36
7.0.140.0050.04018.46
7.0.130.0110.00415.29
7.0.120.0060.03818.60
7.0.110.0080.00815.46
7.0.100.0070.00715.27
7.0.90.0060.00615.40
7.0.80.0060.00615.44
7.0.70.0040.01115.32
7.0.60.0080.03917.55
7.0.50.0050.04116.57
7.0.40.0160.02816.59
7.0.30.0180.04316.81
7.0.20.0150.04316.78
7.0.10.0230.03816.83
7.0.00.0180.04216.90
5.6.400.0000.01114.41
5.6.390.0000.01113.98
5.6.380.0030.00714.32
5.6.370.0030.00614.41
5.6.360.0100.00314.27
5.6.350.0040.01114.40
5.6.340.0060.00914.34
5.6.330.0040.01214.30
5.6.320.0100.00313.80
5.6.310.0040.00714.19
5.6.300.0100.00613.90
5.6.290.0080.00614.33
5.6.280.0020.04417.67
5.6.270.0040.00414.25
5.6.260.0030.00714.57
5.6.250.0050.00514.12
5.6.240.0040.00714.12
5.6.230.0060.00614.04
5.6.220.0070.01014.06
5.6.210.0090.03617.24
5.6.200.0080.04216.12
5.6.190.0160.04517.52
5.6.180.0130.04817.20
5.6.170.0190.03717.48
5.6.160.0190.04217.32
5.6.150.0180.01817.04
5.6.140.0170.02017.31
5.6.130.0130.02517.25
5.6.120.0080.02817.24
5.6.110.0150.03817.29
5.6.100.0110.02417.29
5.6.90.0120.04017.26
5.6.80.0120.03516.93
5.6.70.0130.03516.97
5.6.60.0100.02716.79
5.6.50.0080.04216.93
5.6.40.0140.03016.99
5.6.30.0140.04016.98
5.6.20.0110.02616.94
5.6.10.0170.03916.70
5.6.00.0190.03816.92
5.5.380.0000.01314.10
5.5.370.0000.01514.32
5.5.360.0030.01013.99
5.5.350.0200.04217.08
5.5.340.0050.04516.01
5.5.330.0130.04617.10
5.5.320.0100.03817.23
5.5.310.0200.03817.09
5.5.300.0120.02517.07
5.5.290.0140.03917.11
5.5.280.0100.02617.12
5.5.270.0080.02817.07
5.5.260.0110.02517.23
5.5.250.0120.04716.88
5.5.240.0160.03316.91
5.5.230.0180.03316.75
5.5.220.0120.03116.84
5.5.210.0080.02516.89
5.5.200.0100.03816.75
5.5.190.0090.03116.72
5.5.180.0150.02016.66
5.5.170.0070.00713.77
5.5.160.0180.02816.84
5.5.150.0120.02716.62
5.5.140.0130.03516.80
5.5.130.0140.04416.71
5.5.120.0130.03316.47
5.5.110.0100.04716.79
5.5.100.0160.04116.68
5.5.90.0170.03516.67
5.5.80.0100.03716.72
5.5.70.0150.03816.63
5.5.60.0100.02716.80
5.5.50.0200.03516.71
5.5.40.0170.03116.58
5.5.30.0100.03916.52
5.5.20.0110.03016.75
5.5.10.0070.03716.70
5.5.00.0130.04516.49
5.4.450.0080.03515.11
5.4.440.0070.02415.05
5.4.430.0110.02815.12
5.4.420.0120.02815.12
5.4.410.0150.01814.97
5.4.400.0080.04114.78
5.4.390.0130.02114.97
5.4.380.0130.03514.88
5.4.370.0110.02114.93
5.4.360.0110.03115.00
5.4.350.0130.03615.04
5.4.340.0080.02414.83
5.4.330.0030.00310.95
5.4.320.0120.03014.93
5.4.310.0110.04514.94
5.4.300.0150.03714.84
5.4.290.0130.02714.91
5.4.280.0160.03314.83
5.4.270.0140.03614.97
5.4.260.0160.03414.94
5.4.250.0160.03515.00
5.4.240.0130.03514.84
5.4.230.0200.03314.94
5.4.220.0140.04115.05
5.4.210.0170.03414.77
5.4.200.0130.02014.92
5.4.190.0150.03914.94
5.4.180.0030.03914.92
5.4.170.0150.03114.96
5.4.160.0160.03014.85
5.4.150.0150.03614.95
5.4.140.0140.03413.66
5.4.130.0130.02313.55
5.4.120.0100.02013.63
5.4.110.0120.03813.75
5.4.100.0140.01813.66
5.4.90.0070.02313.74
5.4.80.0130.03213.57
5.4.70.0150.03713.69
5.4.60.0150.03313.54
5.4.50.0080.02213.63
5.4.40.0130.03313.57
5.4.30.0080.04313.60
5.4.20.0140.04013.65
5.4.10.0180.03413.48
5.4.00.0100.03113.25
5.3.290.0190.03712.67
5.3.280.0160.03712.66
5.3.270.0100.02512.60
5.3.260.0150.03812.66
5.3.250.0120.04312.60
5.3.240.0100.02712.65
5.3.230.0110.04112.67
5.3.220.0130.03812.70
5.3.210.0160.02512.56
5.3.200.0130.02212.70
5.3.190.0120.04312.63
5.3.180.0100.02712.64
5.3.170.0160.03812.62
5.3.160.0210.03412.62
5.3.150.0100.03212.62
5.3.140.0130.03612.61
5.3.130.0130.02212.63
5.3.120.0140.02012.55
5.3.110.0140.03112.62
5.3.100.0100.03012.38
5.3.90.0120.02012.43
5.3.80.0100.03012.38
5.3.70.0160.03712.38
5.3.60.0130.02912.38
5.3.50.0130.02612.30
5.3.40.0130.03812.28
5.3.30.0150.02712.32
5.3.20.0160.03512.18
5.3.10.0120.03512.25
5.3.00.0130.02612.13
5.2.170.0130.04712.66
5.2.160.0270.05312.66
5.2.150.0230.05712.66
5.2.140.0230.05312.66
5.2.130.0230.03012.66
5.2.120.0270.03712.66
5.2.110.0170.04312.66
5.2.100.0230.04312.66
5.2.90.0200.05712.66
5.2.80.0130.05712.66
5.2.70.0200.05012.66
5.2.60.0170.05012.66
5.2.50.0270.05012.66
5.2.40.0230.04712.66
5.2.30.0170.05312.66
5.2.20.0170.05712.66
5.2.10.0230.04712.66
5.2.00.0200.05712.66
5.1.60.0170.05012.66
5.1.50.0130.05012.66
5.1.40.0070.04312.66
5.1.30.0100.04012.66
5.1.20.0100.03312.66
5.1.10.0130.03712.66
5.1.00.0130.03312.66
5.0.50.0070.02012.66
5.0.40.0030.02012.66
5.0.30.0100.02712.66
5.0.20.0070.02312.66
5.0.10.0070.01712.66
5.0.00.0100.02712.66
4.4.90.0100.02712.66
4.4.80.0130.03012.66
4.4.70.0030.02312.66
4.4.60.0100.03312.66
4.4.50.0130.03312.66
4.4.40.0030.06012.66
4.4.30.0130.03012.66
4.4.20.0100.03312.66
4.4.10.0030.01712.66
4.4.00.0030.02712.66
4.3.110.0030.01712.66
4.3.100.0030.01712.66
4.3.90.0070.01712.66
4.3.80.0070.02012.66
4.3.70.0030.01712.66
4.3.60.0030.01712.66
4.3.50.0000.01712.66
4.3.40.0030.02312.66
4.3.30.0030.01312.66
4.3.20.0030.01312.66
4.3.10.0000.01712.66
4.3.00.0000.02012.66

preferences:
45.47 ms | 400 KiB | 5 Q