3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class a { function __construct(stdclass $a, $b = 3) { } function c() {} } class b extends a { function __construct($b = 'c') { } function c($fggj = '3939') {} } new a(new stdclass()); new b();

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.00716.63
8.3.50.0120.00722.93
8.3.40.0100.00318.71
8.3.30.0060.01319.09
8.3.20.0040.00420.35
8.3.10.0000.00723.39
8.3.00.0080.00019.26
8.2.180.0180.00416.50
8.2.170.0150.00022.96
8.2.160.0040.01120.38
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.04
8.2.110.0060.00322.13
8.2.100.0080.00317.59
8.2.90.0040.00419.05
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0110.00017.91
8.2.30.0080.00017.94
8.2.20.0040.00417.46
8.2.10.0000.00717.80
8.2.00.0000.00817.55
8.1.280.0000.01525.92
8.1.270.0090.00023.89
8.1.260.0070.00026.35
8.1.250.0030.00328.09
8.1.240.0090.00023.59
8.1.230.0070.00319.22
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0040.00418.52
8.1.160.0040.00421.98
8.1.150.0070.00018.65
8.1.140.0000.00717.36
8.1.130.0030.00317.79
8.1.120.0000.00717.22
8.1.110.0000.00817.25
8.1.100.0040.00317.35
8.1.90.0030.00317.34
8.1.80.0030.00317.20
8.1.70.0030.00317.24
8.1.60.0030.00517.47
8.1.50.0080.00017.31
8.1.40.0040.00417.42
8.1.30.0050.00317.51
8.1.20.0000.00717.64
8.1.10.0040.00417.54
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0030.00617.19
8.0.260.0000.00617.05
8.0.250.0030.00316.97
8.0.240.0070.00016.86
8.0.230.0030.00316.88
8.0.220.0000.00716.89
8.0.210.0070.00016.86
8.0.200.0030.00316.79
8.0.190.0040.00416.88
8.0.180.0000.00716.89
8.0.170.0050.00316.90
8.0.160.0000.00716.77
8.0.150.0070.00016.65
8.0.140.0000.00716.81
8.0.130.0030.00313.18
8.0.120.0090.00016.78
8.0.110.0040.00416.79
8.0.100.0000.00716.86
8.0.90.0040.00416.73
8.0.80.0060.01216.88
8.0.70.0000.00716.86
8.0.60.0040.00416.64
8.0.50.0030.00516.63
8.0.30.0080.01416.98
8.0.20.0110.00817.40
8.0.10.0070.00016.74
8.0.00.0090.01116.62
7.4.330.0000.00615.00
7.4.320.0030.00316.51
7.4.300.0000.00616.42
7.4.290.0050.00316.53
7.4.280.0000.00716.52
7.4.270.0040.00416.46
7.4.260.0070.00016.51
7.4.250.0040.00416.46
7.4.240.0030.00416.45
7.4.230.0030.00316.55
7.4.220.0120.00616.58
7.4.210.0040.01116.39
7.4.200.0040.00416.55
7.4.160.0120.00616.50
7.4.150.0120.00617.40
7.4.140.0070.01217.86
7.4.130.0080.00916.27
7.4.120.0090.01116.46
7.4.110.0100.00716.55
7.4.100.0060.01216.43
7.4.90.0110.00716.47
7.4.80.0120.00819.39
7.4.70.0030.01516.53
7.4.60.0120.00316.38
7.4.50.0040.00416.26
7.4.40.0030.01416.34
7.4.30.0100.00716.46
7.4.00.0090.00614.52
7.3.330.0000.00513.27
7.3.320.0000.00713.00
7.3.310.0060.00016.24
7.3.300.0030.00316.23
7.3.290.0100.01016.25
7.3.280.0080.00716.23
7.3.270.0030.01317.40
7.3.260.0000.01616.41
7.3.250.0140.00716.48
7.3.240.0030.01416.21
7.3.230.0060.00916.39
7.3.210.0130.00616.41
7.3.200.0090.01219.39
7.3.190.0100.00716.24
7.3.180.0120.00316.14
7.3.170.0120.00616.32
7.3.160.0040.01116.27
7.2.330.0130.00616.64
7.2.320.0140.00916.68
7.2.310.0070.01016.34
7.2.300.0060.00916.41
7.2.290.0040.01816.50
7.2.00.0090.00919.10
7.1.100.0000.01517.75
7.1.70.0000.01517.05
7.1.60.0040.00917.07
7.1.50.0070.01116.76
7.1.40.0030.00916.63
7.1.30.0080.00316.47
7.1.20.0080.00316.70
7.1.10.0000.01116.45
7.1.00.0000.00816.61
7.0.200.0030.01216.62
7.0.190.0000.01016.42
7.0.180.0040.00816.13
7.0.170.0030.00716.28
7.0.160.0030.00515.98
7.0.150.0000.00916.18
7.0.140.0060.00316.50
7.0.130.0040.00416.52
7.0.120.0060.00616.54
7.0.110.0000.00816.09
7.0.100.0000.00816.18
7.0.90.0000.01316.32
7.0.80.0070.00316.30
7.0.70.0030.00716.26
7.0.60.0030.00616.08
7.0.50.0000.00916.34
7.0.40.0030.00615.93
7.0.30.0040.00415.93
7.0.20.0000.00915.93
7.0.10.0040.00415.93
7.0.00.0030.00615.93
5.6.300.0070.04320.85
5.6.290.0060.03820.66
5.6.280.0070.05021.05
5.6.270.0030.06421.05
5.6.260.0000.04921.04
5.6.250.0000.04220.90
5.6.240.0030.05621.07
5.6.230.0070.06120.96
5.6.220.0030.05220.88
5.6.210.0000.04220.62
5.6.200.0030.05421.02
5.6.190.0070.04420.83
5.6.180.0000.04821.01
5.6.170.0000.08920.91
5.6.160.0070.05721.03
5.6.150.0030.05120.93
5.6.140.0030.05221.02
5.6.130.0070.04520.82
5.6.120.0000.04720.99
5.6.110.0000.04320.81
5.6.100.0030.04120.98
5.6.90.0030.04320.96
5.6.80.0100.03720.27
5.6.70.0070.05720.19
5.6.60.0030.05920.21
5.6.50.0030.04620.17
5.6.40.0000.05120.35
5.6.30.0030.04120.36
5.6.20.0070.04120.34
5.6.10.0060.03820.20
5.6.00.0030.04020.17
5.5.380.0030.03917.59
5.5.370.0000.04917.60
5.5.360.0000.05217.53
5.5.350.0030.08817.64
5.5.340.0030.05018.13
5.5.330.0070.06017.71
5.5.320.0030.04518.09
5.5.310.0000.04818.06
5.5.300.0030.03918.09
5.5.290.0100.03318.12
5.5.280.0040.04218.16
5.5.270.0070.07918.03
5.5.260.0000.05718.07
5.5.250.0030.04617.87
5.5.240.0030.03717.42
5.5.230.0030.04317.49
5.5.220.0070.03317.11
5.5.210.0000.04717.22
5.5.200.0060.03417.20
5.5.190.0000.05217.18
5.5.180.0070.03917.36
5.5.160.0000.04017.07
5.5.150.0120.02817.19
5.5.140.0110.02817.38
5.5.130.0060.03917.42
5.5.120.0040.04217.42
5.5.110.0000.04017.42
5.5.100.0100.03317.35
5.5.90.0030.04517.33
5.5.80.0030.05017.37
5.5.70.0030.05217.32
5.5.60.0000.04917.32
5.5.50.0140.04117.39
5.5.40.0030.04217.23
5.5.30.0070.04117.34
5.5.20.0130.03617.34
5.5.10.0030.04917.32
5.5.00.0000.05017.30
5.4.450.0030.05419.21
5.4.440.0030.04319.54
5.4.430.0000.05419.46
5.4.420.0030.03919.22
5.4.410.0000.04619.24
5.4.400.0000.04018.90
5.4.390.0060.03819.11
5.4.380.0030.06018.97
5.4.370.0060.03819.14
5.4.360.0000.04518.93
5.4.350.0070.03619.07
5.4.340.0070.04319.21
5.4.320.0030.03618.96
5.4.310.0030.03719.17
5.4.300.0000.04418.90
5.4.290.0000.03819.17
5.4.280.0000.09219.07
5.4.270.0100.03019.11
5.4.260.0030.03719.21
5.4.250.0090.04319.16
5.4.240.0000.04818.91
5.4.230.0070.04018.92
5.4.220.0000.04419.05
5.4.210.0030.05118.92
5.4.200.0000.04418.92
5.4.190.0030.04818.97
5.4.180.0070.04318.97
5.4.170.0060.04118.97
5.4.160.0000.07419.21
5.4.150.0070.03519.10
5.4.140.0040.04016.60
5.4.130.0270.04716.73
5.4.120.0070.04616.81
5.4.110.0070.03616.84
5.4.100.0070.03616.55
5.4.90.0030.03816.75
5.4.80.0030.03816.77
5.4.70.0070.03916.66
5.4.60.0090.03216.62
5.4.50.0030.04016.76
5.4.40.0030.04216.67
5.4.30.0030.03516.45
5.4.20.0030.04516.46
5.4.10.0070.03316.46
5.4.00.0220.03215.95
5.3.290.0030.05015.93
5.3.280.0090.03615.93
5.3.270.0000.05115.93
5.3.260.0090.03815.93
5.3.250.0000.04415.93
5.3.240.0040.04015.93
5.3.230.0000.05015.93
5.3.220.0030.04315.93
5.3.210.0060.04215.93
5.3.200.0060.03915.93
5.3.190.0000.04715.93
5.3.180.0250.04615.93
5.3.170.0060.04215.93
5.3.160.0070.03915.93
5.3.150.0100.03615.93
5.3.140.0030.04115.93
5.3.130.0060.04415.93
5.3.120.0030.04515.93
5.3.110.0040.04015.93
5.3.100.0130.02915.93
5.3.90.0070.03615.93
5.3.80.0060.03815.93
5.3.70.0070.03115.93
5.3.60.0070.03115.93
5.3.50.0030.04415.93
5.3.40.0070.04115.93
5.3.30.0060.03815.93
5.3.20.0030.04215.93
5.3.10.0070.03715.93
5.3.00.0170.03315.93
5.2.170.0040.03615.93
5.2.160.0070.02415.93
5.2.150.0040.02915.93
5.2.140.0030.03415.93
5.2.130.0070.03615.93
5.2.120.0070.02415.93
5.2.110.0030.03015.93
5.2.100.0170.02715.93
5.2.90.0030.05115.93
5.2.80.0230.02915.93
5.2.70.0040.03615.93
5.2.60.0000.03715.93
5.2.50.0000.03715.93
5.2.40.0030.02715.93
5.2.30.0000.03515.93
5.2.20.0030.02715.93
5.2.10.0030.02815.93
5.2.00.0040.02815.93
5.1.60.0060.02215.93
5.1.50.0000.02815.93
5.1.40.0030.02415.93
5.1.30.0060.02215.93
5.1.20.0030.03015.93
5.1.10.0100.02015.93
5.1.00.0000.03215.93
5.0.50.0030.02315.93
5.0.40.0000.02115.93
5.0.30.0000.03215.93
5.0.20.0030.02315.93
5.0.10.0030.02015.93
5.0.00.0030.03015.93
4.4.90.0030.01315.93
4.4.80.0070.01015.93
4.4.70.0030.01615.93
4.4.60.0030.01415.93
4.4.50.0000.02115.93
4.4.40.0070.02315.93
4.4.30.0000.01815.93
4.4.20.0040.01415.93
4.4.10.0030.01315.93
4.4.00.0000.03515.93
4.3.110.0030.01315.93
4.3.100.0030.01915.93
4.3.90.0000.01715.93
4.3.80.0000.02615.93
4.3.70.0030.01315.93
4.3.60.0000.02015.93
4.3.50.0030.01515.93
4.3.40.0040.02515.93
4.3.30.0060.01515.93
4.3.20.0030.01515.93
4.3.10.0040.01415.93
4.3.00.0000.01915.93

preferences:
47.12 ms | 400 KiB | 5 Q