3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function __construct(stdclass $a, $b = 3) { } } class b extends a { function __construct() { } }

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.70.0140.00016.58
8.3.60.0100.00716.50
8.3.50.0130.00822.87
8.3.40.0070.00718.46
8.3.30.0100.00318.96
8.3.20.0040.00420.27
8.3.10.0040.00423.56
8.3.00.0040.00419.26
8.2.180.0080.00816.32
8.2.170.0120.00322.96
8.2.160.0200.00020.25
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00626.16
8.2.120.0000.00721.06
8.2.110.0090.00022.25
8.2.100.0080.00419.42
8.2.90.0050.00318.92
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0030.00517.91
8.2.50.0000.00818.07
8.2.40.0120.00017.77
8.2.30.0040.00417.93
8.2.20.0050.00217.45
8.2.10.0040.00417.91
8.2.00.0030.00617.55
8.1.280.0030.01025.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.81
8.1.230.0110.00018.95
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00816.88
8.1.180.0020.00518.10
8.1.170.0070.00218.53
8.1.160.0050.00221.85
8.1.150.0000.00718.68
8.1.140.0050.00217.32
8.1.130.0000.00717.82
8.1.120.0070.00017.34
8.1.110.0030.00617.29
8.1.100.0020.00517.21
8.1.90.0000.00717.21
8.1.80.0000.00717.35
8.1.70.0000.00717.28
8.1.60.0060.00317.33
8.1.50.0000.00817.38
8.1.40.0000.00817.25
8.1.30.0050.00317.48
8.1.20.0080.00017.46
8.1.10.0030.00517.39
8.1.00.0030.00517.36
8.0.300.0030.00318.77
8.0.290.0040.00416.58
8.0.280.0070.00018.21
8.0.270.0090.00016.99
8.0.260.0000.00617.16
8.0.250.0070.00016.81
8.0.240.0000.00816.70
8.0.230.0000.00716.74
8.0.220.0030.00316.78
8.0.210.0030.00316.78
8.0.200.0040.00416.83
8.0.190.0030.00316.83
8.0.180.0000.00816.76
8.0.170.0070.00016.73
8.0.160.0030.00516.73
8.0.150.0000.00816.68
8.0.140.0030.00316.70
8.0.130.0060.00013.21
8.0.120.0070.00016.64
8.0.110.0000.00816.66
8.0.100.0040.00416.74
8.0.90.0030.00316.82
8.0.80.0070.01416.69
8.0.70.0070.00016.68
8.0.60.0000.00716.66
8.0.50.0000.00716.66
8.0.30.0090.01017.00
8.0.20.0110.00817.40
8.0.10.0070.00016.73
8.0.00.0150.00616.66
7.4.330.0030.00315.00
7.4.320.0000.00616.47
7.4.300.0030.00316.41
7.4.290.0030.00316.44
7.4.280.0070.00016.43
7.4.270.0030.00516.41
7.4.260.0030.00316.38
7.4.250.0000.00716.28
7.4.240.0020.00516.42
7.4.230.0000.00716.56
7.4.220.0060.01216.43
7.4.210.0080.00616.24
7.4.200.0050.00216.48
7.4.160.0090.00916.55
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0070.01016.26
7.4.120.0090.00716.29
7.4.110.0030.01316.43
7.4.100.0100.00616.22
7.4.90.0060.01016.48
7.4.80.0130.01019.39
7.4.70.0040.01316.25
7.4.60.0130.00316.23
7.4.50.0000.00716.00
7.4.40.0120.00416.42
7.4.30.0120.00616.11
7.4.00.0100.00314.68
7.3.330.0030.00313.13
7.3.320.0000.00513.24
7.3.310.0030.00516.16
7.3.300.0040.00416.18
7.3.290.0090.01216.18
7.3.280.0090.00716.13
7.3.270.0100.00617.40
7.3.260.0030.01316.20
7.3.250.0070.01316.18
7.3.240.0060.01916.26
7.3.230.0030.01316.39
7.3.210.0130.00316.10
7.3.200.0100.00719.39
7.3.190.0150.00616.49
7.3.180.0080.00816.45
7.3.170.0060.00916.27
7.3.160.0100.00616.23
7.3.10.0040.00815.94
7.3.00.0080.00816.13
7.2.330.0130.00616.19
7.2.320.0170.00716.50
7.2.310.0110.00716.25
7.2.300.0060.00916.28
7.2.290.0030.01716.20
7.2.130.0150.00416.48
7.2.120.0170.00416.15
7.2.110.0180.00616.34
7.2.100.0210.00016.33
7.2.90.0050.01016.24
7.2.80.0060.01116.32
7.2.70.0100.01016.16
7.2.60.0170.00516.25
7.2.50.0120.00316.39
7.2.40.0070.00716.47
7.2.30.0000.01116.40
7.2.20.0110.00916.18
7.2.10.0120.00316.27
7.2.00.0090.00317.77
7.1.250.0100.00515.17
7.1.200.0000.00815.50
7.1.100.0030.00917.80
7.1.70.0000.00817.13
7.1.60.0090.01519.40
7.1.50.0110.01416.91
7.1.00.0000.08022.48
7.0.200.0000.00716.63
7.0.140.0030.07722.02
7.0.60.0100.08720.02
7.0.50.0030.08017.94
7.0.40.0070.06020.11
7.0.30.0400.03320.18
7.0.20.0330.04720.22
7.0.10.0170.07320.10
7.0.00.0070.08020.09
5.6.280.0070.07020.86
5.6.210.0030.04320.44
5.6.200.0030.04718.19
5.6.190.0130.07320.41
5.6.180.0330.07320.45
5.6.170.0270.05320.39
5.6.160.0030.04320.55
5.6.150.0030.08718.15
5.6.140.0030.08718.12
5.6.130.0030.05018.23
5.6.120.0130.08320.97
5.6.110.0170.08321.00
5.6.100.0170.06721.03
5.6.90.0070.03720.98
5.6.80.0130.06020.57
5.6.70.3970.04320.44
5.5.350.0170.07320.46
5.5.340.0070.03718.09
5.5.330.0070.04320.41
5.5.320.0370.07320.25
5.5.310.0270.06320.24
5.5.300.0100.07317.98
5.5.290.0130.04718.08
5.5.280.0100.06320.80
5.5.270.0100.06720.84
5.5.260.0130.06720.78
5.5.250.0070.08020.70
5.5.240.0100.07020.19
5.4.450.0030.05019.33
5.4.440.0270.04319.50
5.4.430.0200.03019.16
5.4.420.0530.03319.48
5.4.410.0470.04319.39
5.4.400.0170.05019.22
5.4.390.0400.03319.13
5.4.380.0070.06318.63
5.4.370.0870.04318.74
5.4.360.0700.06018.63
5.4.350.1100.05718.79
5.4.340.0830.05718.55
5.4.320.0050.03512.50
5.4.310.0030.03912.50
5.4.300.0050.03512.50
5.4.290.0070.03512.50
5.4.280.0040.03512.39
5.4.270.0040.03712.39
5.4.260.0070.03612.39
5.4.250.0060.03712.39
5.4.240.0050.03612.39
5.4.230.0080.03512.39
5.4.220.0050.04112.38
5.4.210.0030.03712.39
5.4.200.0050.03812.38
5.4.190.0090.03812.38
5.4.180.0060.03712.38
5.4.170.0040.03712.39
5.4.160.0040.03712.39
5.4.150.0050.03612.39
5.4.140.0050.03712.07
5.4.130.0050.03612.05
5.4.120.0030.03712.02
5.4.110.0060.03412.01
5.4.100.0070.03412.01
5.4.90.0060.03612.01
5.4.80.0080.03512.01
5.4.70.0100.03712.00
5.4.60.0030.03712.00
5.4.50.0040.03612.01
5.4.40.0030.03712.00
5.4.30.0040.03612.00
5.4.20.0090.03011.99
5.4.10.0040.03512.00
5.4.00.0040.04011.48
5.3.290.0030.04112.80
5.3.280.0060.04012.71
5.3.270.0040.04112.72
5.3.260.0060.03712.72
5.3.250.0050.04312.71
5.3.240.0030.03912.72
5.3.230.0070.04112.71
5.3.220.0060.03612.68
5.3.210.0050.03912.68
5.3.200.0030.03812.68
5.3.190.0070.04612.68
5.3.180.0080.03512.67
5.3.170.0070.03712.67
5.3.160.0050.03712.67
5.3.150.0050.03812.67
5.3.140.0060.03612.66
5.3.130.0050.04012.66
5.3.120.0030.04112.66
5.3.110.0090.03412.66
5.3.100.0030.03912.12
5.3.90.0060.03512.10
5.3.80.0060.03512.10
5.3.70.0020.03912.09
5.3.60.0060.03912.07
5.3.50.0080.03312.02
5.3.40.0110.03212.03
5.3.30.0060.03411.98
5.3.20.0030.03711.77
5.3.10.0070.03311.73
5.3.00.0070.04011.72
5.2.170.0050.0329.21
5.2.160.0030.0359.22
5.2.150.0040.0389.22
5.2.140.0030.0419.22
5.2.130.0050.0279.18
5.2.120.0060.0309.18
5.2.110.0090.0259.19
5.2.100.0060.0349.18
5.2.90.0040.0289.18
5.2.80.0050.0349.17
5.2.70.0050.0369.17
5.2.60.0060.0299.13
5.2.50.0040.0299.09
5.2.40.0070.0349.07
5.2.30.0030.0339.05
5.2.20.0070.0339.03
5.2.10.0060.0268.94
5.2.00.0040.0298.80
5.1.60.0010.0338.09
5.1.50.0010.0278.08
5.1.40.0050.0278.07
5.1.30.0060.0238.41
5.1.20.0030.0278.44
5.1.10.0040.0258.16
5.1.00.0030.0268.16
5.0.50.0040.0196.64
5.0.40.0040.0186.50
5.0.30.0030.0306.32
5.0.20.0020.0206.28
5.0.10.0030.0206.25
5.0.00.0050.0286.25
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0050.0134.75
4.4.60.0030.0144.76
4.4.50.0010.0164.77
4.4.40.0030.0244.71
4.4.30.0030.0144.76
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0030.0134.63
4.3.80.0030.0234.58
4.3.70.0060.0174.63
4.3.60.0030.0134.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0000.0183.30
4.3.20.0020.0163.29
4.3.10.0010.0163.24
4.3.00.0130.02015.97

preferences:
43.14 ms | 401 KiB | 5 Q