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 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.0100.01016.75
8.3.50.0100.00822.70
8.3.40.0040.01518.71
8.3.30.0100.00619.17
8.3.20.0040.00420.33
8.3.10.0040.00421.73
8.3.00.0000.00817.80
8.2.180.0100.01016.48
8.2.170.0070.00722.96
8.2.160.0130.00720.38
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00721.03
8.2.110.0060.00322.21
8.2.100.0140.00717.58
8.2.90.0000.00819.22
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0060.00318.07
8.2.40.0040.00417.97
8.2.30.0040.00418.17
8.2.20.0050.00317.70
8.2.10.0040.00418.06
8.2.00.0000.00717.72
8.1.280.0140.00025.92
8.1.270.0040.00423.71
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00523.96
8.1.230.0060.00619.01
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0000.00818.53
8.1.160.0040.00421.92
8.1.150.0000.00718.88
8.1.140.0070.00017.36
8.1.130.0040.00417.84
8.1.120.0000.00717.46
8.1.110.0050.00317.45
8.1.100.0050.00317.40
8.1.90.0000.00717.47
8.1.80.0030.00317.46
8.1.70.0000.00717.45
8.1.60.0040.00417.47
8.1.50.0040.00417.49
8.1.40.0040.00417.51
8.1.30.0050.00317.69
8.1.20.0040.00417.62
8.1.10.0050.00317.52
8.1.00.0000.00717.54
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0080.00018.36
8.0.270.0070.00017.13
8.0.260.0080.00017.26
8.0.250.0000.00716.89
8.0.240.0070.00016.95
8.0.230.0000.00816.88
8.0.220.0070.00016.88
8.0.210.0000.00716.76
8.0.200.0000.00816.79
8.0.190.0030.00516.92
8.0.180.0040.00416.81
8.0.170.0030.00516.88
8.0.160.0070.00016.88
8.0.150.0000.00716.79
8.0.140.0080.00016.83
8.0.130.0050.00313.32
8.0.120.0040.00416.86
8.0.110.0050.00216.87
8.0.100.0020.00516.76
8.0.90.0040.00416.96
8.0.80.0070.00516.88
8.0.70.0050.00216.95
8.0.60.0000.00816.79
8.0.50.0070.00316.94
8.0.30.0140.00517.10
8.0.20.0140.01317.40
8.0.10.0040.00417.04
8.0.00.0110.01016.73
7.4.330.0050.00015.00
7.4.320.0030.00316.43
7.4.300.0060.00016.49
7.4.290.0040.00416.45
7.4.280.0040.00416.60
7.4.270.0000.00716.55
7.4.260.0000.00716.61
7.4.250.0030.00716.55
7.4.240.0050.00216.63
7.4.230.0070.00016.59
7.4.220.0030.01316.67
7.4.210.0110.00416.55
7.4.200.0030.00316.59
7.4.160.0170.00616.48
7.4.150.0120.00617.40
7.4.140.0080.00917.86
7.4.130.0260.00016.44
7.4.120.0110.00816.64
7.4.110.0070.01016.33
7.4.100.0100.00716.44
7.4.90.0150.00716.38
7.4.80.0060.01619.39
7.4.70.0070.01016.30
7.4.60.0000.01716.52
7.4.50.0030.00616.66
7.4.40.0150.00416.60
7.4.30.0090.00716.43
7.4.00.0030.01015.02
7.3.330.0030.00313.01
7.3.320.0030.00313.23
7.3.310.0050.00216.27
7.3.300.0040.00416.10
7.3.290.0100.00716.24
7.3.280.0070.00816.25
7.3.270.0120.01217.40
7.3.260.0130.00316.66
7.3.240.0030.01616.25
7.3.230.0100.00616.39
7.3.210.0000.01916.34
7.3.200.0040.01519.39
7.3.190.0100.00716.27
7.3.180.0030.01316.60
7.3.170.0120.00916.31
7.3.160.0060.01016.29
7.3.120.0100.00614.95
7.2.330.0210.00616.39
7.2.320.0070.01016.36
7.2.310.0060.01316.48
7.2.300.0060.01016.31
7.2.290.0130.00316.56
7.2.00.0040.01119.54
7.1.100.0130.00518.06
7.1.70.0000.00916.89
7.1.60.0100.01319.40
7.1.50.0070.01416.52
7.1.00.0000.08022.31
7.0.200.0030.00716.41
7.0.140.0070.07022.12
7.0.60.0070.07719.92
7.0.50.0100.08317.86
7.0.40.0070.07020.13
7.0.30.0400.04320.09
7.0.20.0300.05320.19
7.0.10.0030.04320.23
7.0.00.0070.08320.09
5.6.280.0000.07720.93
5.6.210.0070.03720.53
5.6.200.0000.04318.22
5.6.190.0000.04720.45
5.6.180.0330.07720.65
5.6.170.0300.06020.50
5.6.160.0000.04320.61
5.6.150.0000.09018.18
5.6.140.0030.04018.13
5.6.130.0030.04318.18
5.6.120.0070.03721.02
5.6.110.0170.07321.14
5.6.100.0030.04721.03
5.6.90.0230.06721.00
5.6.80.0100.04720.50
5.5.350.0000.03320.48
5.5.340.0100.06717.97
5.5.330.0100.06320.32
5.5.320.0130.07320.34
5.5.310.0300.06320.28
5.5.300.0200.04017.92
5.5.290.0070.08318.05
5.5.280.0070.03720.73
5.5.270.0100.08320.88
5.5.260.0230.06720.87
5.5.250.0000.08320.70
5.5.240.0170.07020.19
5.4.450.0430.03719.46
5.4.440.0330.04319.17
5.4.430.0230.05019.45
5.4.420.0530.04019.45
5.4.410.0300.04319.04
5.4.400.0730.04318.95
5.4.390.0330.03319.14
5.4.380.0670.05018.56
5.4.370.0900.04318.68
5.4.360.0870.06318.47
5.4.350.1070.05318.50
5.4.340.0930.04318.76
5.4.320.0060.04112.50
5.4.310.0030.04012.50
5.4.300.0060.03512.50
5.4.290.0050.03812.50
5.4.280.0060.03512.39
5.4.270.0070.03412.40
5.4.260.0020.04112.39
5.4.250.0050.03812.39
5.4.240.0040.03712.39
5.4.230.0050.03912.38
5.4.220.0040.03812.38
5.4.210.0100.03112.39
5.4.200.0060.04212.38
5.4.190.0040.03812.38
5.4.180.0070.03712.38
5.4.170.0050.04012.39
5.4.160.0050.03712.39
5.4.150.0050.03712.39
5.4.140.0080.03712.07
5.4.130.0060.03612.06
5.4.120.0040.03812.02
5.4.110.0050.03712.01
5.4.100.0080.03412.01
5.4.90.0060.03712.01
5.4.80.0050.03912.02
5.4.70.0070.03312.01
5.4.60.0050.03512.01
5.4.50.0050.03612.01
5.4.40.0060.03412.00
5.4.30.0060.03511.99
5.4.20.0070.03411.99
5.4.10.0040.03711.99
5.4.00.0060.03811.48
5.3.290.0130.04312.80
5.3.280.0000.04312.71
5.3.270.0060.03912.73
5.3.260.0060.03912.72
5.3.250.0050.03812.72
5.3.240.0070.03512.72
5.3.230.0070.03612.70
5.3.220.0060.03712.68
5.3.210.0050.03912.68
5.3.200.0060.03612.68
5.3.190.0060.03712.67
5.3.180.0040.03812.67
5.3.170.0050.03712.67
5.3.160.0050.03712.68
5.3.150.0070.03812.67
5.3.140.0050.03712.66
5.3.130.0040.04012.66
5.3.120.0100.03512.65
5.3.110.0080.03612.66
5.3.100.0080.03412.13
5.3.90.0020.03912.11
5.3.80.0080.03412.11
5.3.70.0100.03212.11
5.3.60.0070.03512.09
5.3.50.0120.03012.04
5.3.40.0100.03312.04
5.3.30.0040.03711.99
5.3.20.0060.03511.77
5.3.10.0060.03411.74
5.3.00.0050.03611.73
5.2.170.0050.0309.18
5.2.160.0040.0309.18
5.2.150.0050.0299.18
5.2.140.0010.0339.18
5.2.130.0050.0289.14
5.2.120.0070.0259.14
5.2.110.0050.0309.15
5.2.100.0090.0249.14
5.2.90.0030.0349.14
5.2.80.0050.0319.14
5.2.70.0050.0309.14
5.2.60.0060.0299.09
5.2.50.0050.0329.06
5.2.40.0040.0329.04
5.2.30.0030.0319.01
5.2.20.0040.0359.00
5.2.10.0040.0308.93
5.2.00.0020.0318.78
5.1.60.0030.0258.07
5.1.50.0040.0258.06
5.1.40.0000.0288.05
5.1.30.0030.0278.39
5.1.20.0020.0288.42
5.1.10.0050.0278.14
5.1.00.0030.0278.14
5.0.50.0020.0226.62
5.0.40.0090.0156.48
5.0.30.0080.0266.29
5.0.20.0040.0186.27
5.0.10.0030.0206.24
5.0.00.0050.0296.23
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0050.0134.76
4.4.60.0010.0174.75
4.4.50.0030.0144.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0000.0284.76
4.3.110.0050.0134.67
4.3.100.0030.0144.66
4.3.90.0050.0124.63
4.3.80.0030.0234.58
4.3.70.0010.0164.63
4.3.60.0020.0144.62
4.3.50.0020.0164.62
4.3.40.0030.0234.53
4.3.30.0010.0173.28
4.3.20.0010.0173.26
4.3.10.0020.0153.22
4.3.00.0030.01715.88

preferences:
42.52 ms | 401 KiB | 5 Q