3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace One; abstract class Abs { public function __toString() { return strtolower(get_called_class()); /* Should print test, not abs :P */ } } namespace Two; class Test extends One\Abs { } $x = new \Two\Test; echo $x;

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.49
8.3.50.0110.00622.85
8.3.40.0120.00318.68
8.3.30.0070.00718.95
8.3.20.0070.00020.30
8.3.10.0080.00021.60
8.3.00.0060.00317.92
8.2.180.0140.00717.00
8.2.170.0100.01022.96
8.2.160.0170.00320.57
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0130.00626.16
8.2.120.0000.00820.92
8.2.110.0030.00622.11
8.2.100.0080.00617.84
8.2.90.0080.00019.05
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0000.00817.80
8.2.50.0090.00018.07
8.2.40.0070.00018.22
8.2.30.0040.00417.97
8.2.20.0070.00017.67
8.2.10.0040.00418.05
8.2.00.0000.00717.75
8.1.280.0070.00725.92
8.1.270.0000.00923.88
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0070.00323.77
8.1.230.0040.00819.13
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0070.00317.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.26
8.1.160.0000.00922.01
8.1.150.0000.00718.86
8.1.140.0060.00317.39
8.1.130.0000.00717.68
8.1.120.0000.00717.36
8.1.110.0000.00717.42
8.1.100.0080.00017.36
8.1.90.0030.00517.30
8.1.80.0030.00317.30
8.1.70.0030.00317.40
8.1.60.0000.00717.55
8.1.50.0000.00917.41
8.1.40.0000.00817.46
8.1.30.0060.00317.63
8.1.20.0000.00717.56
8.1.10.0040.00417.41
8.1.00.0000.00817.36
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0040.00417.30
8.0.260.0030.00317.29
8.0.250.0030.00317.01
8.0.240.0000.00716.97
8.0.230.0030.00517.03
8.0.220.0000.00716.85
8.0.210.0030.00316.93
8.0.200.0000.00716.98
8.0.190.0000.00817.04
8.0.180.0000.00716.96
8.0.170.0080.00016.95
8.0.160.0000.00716.99
8.0.150.0000.00716.98
8.0.140.0030.00316.92
8.0.130.0030.00313.41
8.0.120.0040.00416.91
8.0.110.0020.00516.90
8.0.100.0040.00417.07
8.0.90.0040.00416.96
8.0.80.0090.00916.90
8.0.70.0000.00816.83
8.0.60.0000.00716.83
8.0.50.0000.00816.86
8.0.30.0130.01117.17
8.0.20.0130.01217.40
8.0.10.0030.00316.98
8.0.00.0100.01116.79
7.4.330.0050.00015.00
7.4.320.0000.00616.46
7.4.300.0000.00616.45
7.4.290.0060.00016.56
7.4.280.0000.00816.54
7.4.270.0080.00016.53
7.4.260.0030.00316.35
7.4.250.0030.00316.48
7.4.240.0020.00516.47
7.4.230.0000.00716.52
7.4.220.0110.00716.63
7.4.210.0060.01116.52
7.4.200.0070.00016.34
7.4.160.0110.00416.46
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0080.01116.43
7.4.120.0130.00516.45
7.4.110.0170.00016.48
7.4.100.0100.00716.32
7.4.90.0120.00616.58
7.4.80.0070.01419.39
7.4.70.0090.00916.53
7.4.60.0100.01016.51
7.4.50.0040.00416.61
7.4.40.0110.00716.44
7.4.30.0130.00316.50
7.4.00.0120.00615.14
7.3.330.0020.00413.30
7.3.320.0050.00013.23
7.3.310.0040.00416.20
7.3.300.0000.00716.19
7.3.290.0130.00716.27
7.3.280.0110.00916.29
7.3.270.0070.01017.40
7.3.260.0060.01116.35
7.3.240.0090.00916.48
7.3.230.0140.00316.64
7.3.210.0120.00616.59
7.3.200.0130.00316.31
7.3.190.0120.00916.28
7.3.180.0090.00916.44
7.3.170.0040.01116.41
7.3.160.0070.01016.47
7.3.120.0030.01014.84
7.3.10.0090.00916.73
7.3.00.0070.00716.57
7.2.330.0090.00916.57
7.2.320.0060.01216.23
7.2.310.0060.01016.23
7.2.300.0080.00816.28
7.2.290.0170.00516.62
7.2.130.0060.00316.57
7.2.120.0090.00616.95
7.2.110.0060.00316.83
7.2.100.0080.00816.68
7.2.90.0000.01516.64
7.2.80.0050.00816.56
7.2.70.0060.00816.80
7.2.60.0030.01116.61
7.2.50.0030.01016.66
7.2.40.0060.00616.61
7.2.30.0070.00416.74
7.2.20.0000.01616.93
7.2.10.0040.01116.95
7.2.00.0040.01118.02
7.1.250.0070.00715.58
7.1.200.0040.00815.42
7.1.100.0130.00418.05
7.1.70.0030.00717.04
7.1.60.0090.00919.40
7.1.50.0130.01016.68
7.1.00.0030.07322.50
7.0.200.0000.00816.72
7.0.140.0030.07322.09
7.0.60.0100.08020.05
7.0.50.0170.03717.95
7.0.40.0070.08720.11
7.0.30.0300.07320.12
7.0.20.0300.04720.24
7.0.10.0100.05320.23
7.0.00.0030.04020.14
5.6.280.0030.07320.91
5.6.210.0170.07720.57
5.6.200.0030.08018.19
5.6.190.0070.05020.46
5.6.180.0200.05320.68
5.6.170.0200.08320.48
5.6.160.0130.05720.46
5.6.150.0030.08718.17
5.6.140.0030.07718.11
5.6.130.0030.04018.14
5.6.120.0070.06720.98
5.6.110.0000.09020.93
5.6.100.0200.07020.99
5.6.90.0100.08020.97
5.6.80.0100.07320.37
5.5.350.3070.04020.39
5.5.340.0000.05018.11
5.5.330.0130.08020.41
5.5.320.0270.07320.23
5.5.310.0400.06720.25
5.5.300.0030.04018.02
5.5.290.0070.04717.98
5.5.280.0100.04720.68
5.5.270.0070.06320.87
5.5.260.0100.07720.84
5.5.250.0200.07720.78
5.5.240.0070.07320.16
5.4.450.0430.04019.49
5.4.440.0500.03719.29
5.4.430.0670.04719.40
5.4.420.0730.04319.32
5.4.410.0100.04719.33
5.4.400.0430.03718.84
5.4.390.0500.05018.99
5.4.380.0830.06718.56
5.4.370.0930.06318.77
5.4.360.0970.05018.73
5.4.350.0770.06318.77
5.4.340.1030.06318.68
5.4.320.0050.04612.50
5.4.310.0020.04112.49
5.4.300.0030.03912.50
5.4.290.0060.04412.50
5.4.280.0060.03512.39
5.4.270.0100.04012.40
5.4.260.0060.04212.39
5.4.250.0060.03912.39
5.4.240.0050.03712.40
5.4.230.0070.03712.39
5.4.220.0050.04212.39
5.4.210.0050.03712.39
5.4.200.0070.04712.38
5.4.190.0080.03312.38
5.4.180.0070.03512.38
5.4.170.0060.03412.39
5.4.160.0050.03712.39
5.4.150.0050.03912.39
5.4.140.0100.03312.07
5.4.130.0070.04012.05
5.4.120.0060.04512.02
5.4.110.0080.04412.02
5.4.100.0090.03212.01
5.4.90.0030.04012.01
5.4.80.0040.04312.01
5.4.70.0060.03312.01
5.4.60.0060.03412.01
5.4.50.0040.03612.01
5.4.40.0060.03412.00
5.4.30.0040.03611.99
5.4.20.0060.03411.99
5.4.10.0070.03212.00
5.4.00.0060.03611.48
5.3.290.0050.04112.80
5.3.280.0040.03912.71
5.3.270.0040.04212.72
5.3.260.0040.04012.72
5.3.250.0070.03512.71
5.3.240.0070.03512.71
5.3.230.0080.04112.71
5.3.220.0050.03712.68
5.3.210.0050.03912.68
5.3.200.0070.03512.68
5.3.190.0080.03612.68
5.3.180.0080.04812.67
5.3.170.0050.04512.67
5.3.160.0070.04012.68
5.3.150.0100.03512.67
5.3.140.0120.03512.66
5.3.130.0130.04112.65
5.3.120.0090.05112.66
5.3.110.0080.04112.66
5.3.100.0050.03812.13
5.3.90.0080.03412.12
5.3.80.0040.03812.11
5.3.70.0070.04012.11
5.3.60.0080.04512.09
5.3.50.0090.03312.04
5.3.40.0080.03412.04
5.3.30.0060.04212.00
5.3.20.0030.03711.77
5.3.10.0040.03611.75
5.3.00.0070.03511.73
5.2.170.0040.0319.18
5.2.160.0040.0299.18
5.2.150.0060.0299.18
5.2.140.0070.0289.18
5.2.130.0080.0269.14
5.2.120.0050.0289.14
5.2.110.0070.0279.14
5.2.100.0050.0279.14
5.2.90.0060.0279.14
5.2.80.0020.0399.14
5.2.70.0030.0369.14
5.2.60.0080.0339.09
5.2.50.0050.0299.05
5.2.40.0050.0289.03
5.2.30.0040.0389.01
5.2.20.0070.0269.00
5.2.10.0050.0278.93
5.2.00.0040.0298.78
5.1.60.0050.0238.07
5.1.50.0060.0288.06
5.1.40.0060.0228.05
5.1.30.0070.0428.40
5.1.20.0070.0358.42
5.1.10.0060.0248.14
5.1.00.0020.0278.14
5.0.50.0050.0236.62
5.0.40.0070.0206.48
5.0.30.0020.0336.29
5.0.20.0030.0206.26
5.0.10.0030.0206.24
5.0.00.0030.0356.23
4.4.90.0030.0184.78
4.4.80.0050.0144.75
4.4.70.0020.0164.76
4.4.60.0020.0164.75
4.4.50.0060.0124.77
4.4.40.0030.0254.71
4.4.30.0010.0184.76
4.4.20.0040.0154.84
4.4.10.0010.0184.85
4.4.00.0040.0254.76
4.3.110.0020.0214.67
4.3.100.0040.0144.66
4.3.90.0030.0144.64
4.3.80.0040.0264.58
4.3.70.0020.0154.63
4.3.60.0030.0174.63
4.3.50.0040.0144.63
4.3.40.0060.0254.54
4.3.30.0020.0173.28
4.3.20.0040.0283.26
4.3.10.0010.0173.22
4.3.00.0100.01315.88

preferences:
43.76 ms | 401 KiB | 5 Q