3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public static $registered = array(); public static function register($name){ self::$registered[] = $name; } } class Child extends X { } Child::register("foo"); var_dump( Child::$registered );

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.0070.01316.50
8.3.50.0150.00322.85
8.3.40.0110.00418.67
8.3.30.0140.00019.18
8.3.20.0070.00020.21
8.3.10.0000.00723.53
8.3.00.0050.00317.63
8.2.180.0120.00616.63
8.2.170.0170.00322.96
8.2.160.0060.00820.52
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00721.01
8.2.110.0070.01022.18
8.2.100.0040.00817.84
8.2.90.0080.00017.91
8.2.80.0050.00318.16
8.2.70.0050.00318.05
8.2.60.0030.00518.22
8.2.50.0060.00318.10
8.2.40.0030.00519.30
8.2.30.0030.00519.23
8.2.20.0040.00417.61
8.2.10.0050.00318.10
8.2.00.0070.00017.66
8.1.280.0070.00725.92
8.1.270.0060.00323.80
8.1.260.0040.01426.35
8.1.250.0070.00028.09
8.1.240.0060.00617.48
8.1.230.0000.01122.66
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0060.00318.49
8.1.160.0030.00718.92
8.1.150.0040.00418.71
8.1.140.0050.00217.42
8.1.130.0000.00717.82
8.1.120.0040.00417.43
8.1.110.0000.00717.24
8.1.100.0000.00717.45
8.1.90.0000.00717.45
8.1.80.0000.00717.39
8.1.70.0000.00717.33
8.1.60.0060.00317.53
8.1.50.0050.00317.53
8.1.40.0000.00817.45
8.1.30.0030.00517.71
8.1.20.0060.00617.55
8.1.10.0080.00017.56
8.1.00.0000.00817.36
8.0.300.0070.00020.08
8.0.290.0070.00416.59
8.0.280.0030.00518.52
8.0.270.0000.00817.15
8.0.260.0070.00017.20
8.0.250.0030.00316.86
8.0.240.0040.00416.80
8.0.230.0050.00216.85
8.0.220.0000.00716.82
8.0.210.0030.00316.85
8.0.200.0070.00016.92
8.0.190.0030.00316.86
8.0.180.0000.00716.73
8.0.170.0020.00516.78
8.0.160.0080.00016.74
8.0.150.0000.00716.81
8.0.140.0050.00316.82
8.0.130.0070.00013.29
8.0.120.0070.00016.68
8.0.110.0050.00216.64
8.0.100.0030.00516.87
8.0.90.0000.00716.65
8.0.80.0120.00916.80
8.0.70.0000.00716.89
8.0.60.0040.00416.80
8.0.50.0000.00716.80
8.0.30.0060.00916.96
8.0.20.0090.00917.40
8.0.10.0030.00316.89
8.0.00.0060.01216.91
7.4.330.0030.00315.00
7.4.320.0060.00016.46
7.4.300.0060.00016.34
7.4.290.0070.00016.54
7.4.280.0030.00616.38
7.4.270.0000.00716.46
7.4.260.0070.00016.41
7.4.250.0070.00016.38
7.4.240.0060.00116.52
7.4.230.0000.00716.51
7.4.220.0120.01216.64
7.4.210.0070.01016.36
7.4.200.0030.00316.41
7.4.150.0120.00617.40
7.4.140.0070.01217.86
7.4.130.0100.00716.39
7.4.120.0090.00916.56
7.4.110.0100.00716.45
7.4.100.0130.01016.52
7.4.90.0090.00616.35
7.4.80.0070.01019.39
7.4.70.0030.01316.38
7.4.60.0100.00716.51
7.4.50.0000.00416.26
7.4.40.0070.01416.41
7.4.30.0120.00316.42
7.4.00.0130.00315.20
7.3.330.0030.00313.18
7.3.320.0000.00513.24
7.3.310.0030.00316.28
7.3.300.0030.00316.17
7.3.290.0100.00316.26
7.3.280.0100.00716.27
7.3.270.0150.00317.40
7.3.260.0030.02116.45
7.3.250.0090.00916.37
7.3.240.0080.00816.24
7.3.230.0080.00816.39
7.3.210.0030.01416.21
7.3.200.0090.01219.39
7.3.190.0030.01916.30
7.3.180.0120.00416.17
7.3.170.0080.00916.37
7.3.160.0130.00316.38
7.2.330.0040.01516.43
7.2.320.0130.01016.67
7.2.310.0110.00516.58
7.2.300.0090.00916.29
7.2.290.0040.01216.72
7.2.60.0000.01616.55
7.2.00.0030.01019.25
7.1.200.0040.00815.56
7.1.100.0060.00817.96
7.1.70.0000.01117.06
7.1.60.0060.01919.40
7.1.50.0090.01516.98
7.1.00.0030.07722.57
7.0.200.0030.01016.68
7.0.140.0030.07022.11
7.0.60.0100.07319.91
7.0.50.0100.03317.93
7.0.40.0070.04020.18
7.0.30.0300.07720.12
7.0.20.0370.07720.33
7.0.10.0130.04020.15
7.0.00.0100.06020.24
5.6.280.0000.07321.02
5.6.210.0100.08320.55
5.6.200.0070.03718.16
5.6.190.0100.08020.39
5.6.180.2930.04320.41
5.6.170.0230.05020.50
5.6.160.0100.07720.54
5.6.150.0130.07318.19
5.6.140.0070.08018.11
5.6.130.0170.07718.18
5.6.120.0030.04021.00
5.6.110.0100.08020.96
5.6.100.0100.07021.02
5.6.90.0000.05721.03
5.6.80.0070.08020.38
5.6.70.4400.03720.39
5.5.350.0170.03320.32
5.5.340.0000.04018.04
5.5.330.0170.08320.38
5.5.320.0300.06020.27
5.5.310.0370.05020.27
5.5.300.0000.04317.97
5.5.290.0070.06017.97
5.5.280.0070.05720.77
5.5.270.0100.08320.77
5.5.260.0200.07020.76
5.5.250.0000.07720.79
5.5.240.0130.03020.26
5.4.450.0230.05319.28
5.4.440.0170.05319.27
5.4.430.0270.04319.47
5.4.420.0500.04319.46
5.4.410.0130.05319.07
5.4.400.0370.04718.95
5.4.390.0230.03019.25
5.4.380.0270.08318.80
5.4.370.0330.06318.61
5.4.360.0400.04018.79
5.4.350.0230.06018.80
5.4.340.0470.04718.55
5.4.320.0080.03412.50
5.4.310.0090.04112.50
5.4.300.0070.03612.50
5.4.290.0090.03512.50
5.4.280.0060.03512.39
5.4.270.0060.03612.39
5.4.260.0070.03712.39
5.4.250.0090.03412.39
5.4.240.0050.03712.39
5.4.230.0090.03512.39
5.4.220.0060.04112.39
5.4.210.0030.03712.39
5.4.200.0080.03512.39
5.4.190.0090.03312.38
5.4.180.0020.03912.38
5.4.170.0050.03612.40
5.4.160.0060.03512.39
5.4.150.0070.03512.39
5.4.140.0050.03912.07
5.4.130.0040.03812.06
5.4.120.0050.03712.02
5.4.110.0080.03512.01
5.4.100.0090.03112.01
5.4.90.0060.03712.01
5.4.80.0060.04212.01
5.4.70.0070.04112.01
5.4.60.0040.03912.01
5.4.50.0070.03412.00
5.4.40.0030.03811.99
5.4.30.0060.03612.00
5.4.20.0070.03511.99
5.4.10.0070.03712.00
5.4.00.0100.03311.48
5.3.290.0060.03912.80
5.3.280.0070.03612.71
5.3.270.0060.03912.73
5.3.260.0050.04712.72
5.3.250.0060.03612.72
5.3.240.0050.04012.72
5.3.230.0040.03912.71
5.3.220.0050.04412.68
5.3.210.0160.04712.68
5.3.200.0130.03412.68
5.3.190.0080.04312.68
5.3.180.0060.05112.67
5.3.170.0180.04412.67
5.3.160.0110.05012.67
5.3.150.0110.05212.68
5.3.140.0060.04112.66
5.3.130.0070.04012.66
5.3.120.0100.03612.66
5.3.110.0100.03712.65
5.3.100.0050.04412.12
5.3.90.0100.03912.10
5.3.80.0090.03312.09
5.3.70.0040.04112.09
5.3.60.0050.04312.07
5.3.50.0080.04012.03
5.3.40.0060.03612.02
5.3.30.0050.03611.98
5.3.20.0050.03611.76
5.3.10.0120.03011.73
5.3.00.0080.04811.72
5.2.170.0090.0269.23
5.2.160.0070.0269.22
5.2.150.0070.0289.22
5.2.140.0080.0299.21
5.2.130.0070.0289.18
5.2.120.0050.0319.18
5.2.110.0030.0329.18
5.2.100.0070.0279.18
5.2.90.0040.0309.18
5.2.80.0070.0299.17
5.2.70.0050.0309.18
5.2.60.0080.0289.13
5.2.50.0100.0369.09
5.2.40.0070.0369.07
5.2.30.0070.0299.04
5.2.20.0080.0299.03
5.2.10.0030.0328.94
5.2.00.0040.0308.80
5.1.60.0060.0238.09
5.1.50.0060.0238.08
5.1.40.0040.0258.06
5.1.30.0040.0278.41
5.1.20.0050.0268.43
5.1.10.0030.0278.16
5.1.00.0050.0278.16
5.0.50.0050.0206.64
5.0.40.0070.0206.50
5.0.30.0060.0336.31
5.0.20.0030.0236.28
5.0.10.0030.0216.25
5.0.00.0020.0336.25
4.4.90.0010.0174.78
4.4.80.0030.0154.75
4.4.70.0060.0144.75
4.4.60.0020.0174.75
4.4.50.0040.0144.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0040.0244.84
4.4.10.0040.0234.85
4.4.00.0040.0324.76
4.3.110.0040.0224.67
4.3.100.0040.0234.66
4.3.90.0040.0204.63
4.3.80.0040.0274.58
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0010.0174.63
4.3.40.0040.0234.54
4.3.30.0000.0183.30
4.3.20.0020.0163.28
4.3.10.0020.0153.24
4.3.00.0070.02015.96

preferences:
33.51 ms | 401 KiB | 5 Q