3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class a { function __construct(stdclass $a, $b = 3) { } } class b extends a { function __construct($b = 'c') { } } 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.0140.00416.63
8.3.50.0150.00522.93
8.3.40.0140.00018.56
8.3.30.0080.00518.92
8.3.20.0070.00020.20
8.3.10.0040.00423.48
8.3.00.0090.00019.13
8.2.180.0090.00616.74
8.2.170.0090.00622.96
8.2.160.0000.01320.39
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0070.00026.16
8.2.120.0000.00720.91
8.2.110.0060.00322.17
8.2.100.0040.00817.66
8.2.90.0000.00719.11
8.2.80.0030.00617.97
8.2.70.0040.00417.38
8.2.60.0080.00017.91
8.2.50.0060.00318.07
8.2.40.0060.00317.97
8.2.30.0070.00018.01
8.2.20.0000.00817.62
8.2.10.0040.00417.80
8.2.00.0040.00417.43
8.1.280.0150.00425.92
8.1.270.0050.00323.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.92
8.1.230.0040.00719.19
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0000.00918.57
8.1.160.0000.00721.90
8.1.150.0040.00418.66
8.1.140.0040.00417.19
8.1.130.0040.00417.80
8.1.120.0000.00717.29
8.1.110.0000.00717.34
8.1.100.0040.00417.24
8.1.90.0030.00317.36
8.1.80.0050.00317.35
8.1.70.0030.00317.32
8.1.60.0050.00317.53
8.1.50.0000.00817.43
8.1.40.0000.00817.30
8.1.30.0030.00517.53
8.1.20.0070.00017.48
8.1.10.0040.00417.52
8.1.00.0000.00917.29
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.36
8.0.270.0000.00917.05
8.0.260.0040.00417.19
8.0.250.0030.00316.97
8.0.240.0040.00416.88
8.0.230.0070.00016.73
8.0.220.0000.00716.70
8.0.210.0000.00716.71
8.0.200.0000.00616.92
8.0.190.0030.00316.92
8.0.180.0000.00716.84
8.0.170.0000.00716.81
8.0.160.0000.00716.88
8.0.150.0030.00316.73
8.0.140.0040.00416.84
8.0.130.0030.00313.27
8.0.120.0040.00416.78
8.0.110.0040.00416.76
8.0.100.0040.00416.64
8.0.90.0000.00816.86
8.0.80.0090.00916.80
8.0.70.0000.00716.84
8.0.60.0000.00716.65
8.0.50.0040.00416.69
8.0.30.0120.00916.95
8.0.20.0110.01117.40
8.0.10.0050.00316.80
8.0.00.0110.00816.66
7.4.330.0020.00215.00
7.4.320.0070.00016.48
7.4.300.0000.00616.53
7.4.290.0020.00516.57
7.4.280.0000.00816.53
7.4.270.0000.00716.45
7.4.260.0030.00316.43
7.4.250.0030.00316.25
7.4.240.0000.00716.47
7.4.230.0070.00016.53
7.4.220.0050.01416.49
7.4.210.0080.00616.55
7.4.200.0030.00316.35
7.4.160.0060.00916.28
7.4.150.0150.00617.40
7.4.140.0090.00817.86
7.4.130.0090.00816.37
7.4.120.0100.00916.41
7.4.110.0110.00616.51
7.4.100.0120.00416.32
7.4.90.0090.01316.46
7.4.80.0100.00719.39
7.4.70.0120.00816.57
7.4.60.0060.00916.32
7.4.50.0060.00016.23
7.4.40.0080.00816.38
7.4.30.0110.00816.45
7.4.00.0070.00315.06
7.3.330.0050.00013.17
7.3.320.0000.00813.25
7.3.310.0030.00316.27
7.3.300.0050.00216.25
7.3.290.0070.00716.21
7.3.280.0080.00716.24
7.3.270.0070.01017.40
7.3.260.0000.01716.25
7.3.250.0130.00716.33
7.3.240.0060.01216.54
7.3.230.0070.01416.39
7.3.210.0030.01316.17
7.3.200.0060.01019.39
7.3.190.0130.00516.38
7.3.180.0000.01416.32
7.3.170.0070.01116.29
7.3.160.0060.00916.48
7.3.10.0100.00616.45
7.3.00.0080.00916.43
7.2.330.0190.00616.64
7.2.320.0180.00416.66
7.2.310.0070.01016.46
7.2.300.0100.00616.36
7.2.290.0070.01416.53
7.2.130.0080.00916.63
7.2.120.0090.00716.61
7.2.110.0090.00716.71
7.2.100.0120.00716.75
7.2.90.0080.01016.66
7.2.80.0090.00616.71
7.2.70.0110.00816.63
7.2.60.0090.00516.68
7.2.50.0100.00816.85
7.2.40.0090.00816.63
7.2.30.0070.00816.70
7.2.20.0100.00616.72
7.2.10.0090.00716.67
7.2.00.0060.00917.42
7.1.250.0040.01115.65
7.1.200.0070.00015.74
7.1.100.0000.01517.92
7.1.70.0000.00717.07
7.1.60.0070.01719.40
7.1.50.0040.01816.57
7.1.00.0070.07022.45
7.0.200.0000.00816.75
7.0.140.0000.07021.99
7.0.60.0100.05320.01
7.0.50.0000.09017.78
7.0.40.0000.05320.20
7.0.30.0200.04320.20
7.0.20.0230.04020.25
7.0.10.0000.09720.23
7.0.00.0100.08720.37
5.6.280.0100.06720.99
5.6.210.0170.09020.51
5.6.200.0100.07318.22
5.6.190.0100.03720.48
5.6.180.3030.04320.41
5.6.170.0300.04720.44
5.6.160.0130.04720.50
5.6.150.0030.06718.16
5.6.140.0100.07318.14
5.6.130.0030.08718.23
5.6.120.0100.06721.04
5.6.110.0100.08021.02
5.6.100.0130.08021.01
5.6.90.0100.08020.88
5.6.80.0000.04320.39
5.6.70.4370.04320.38
5.5.350.0330.06320.34
5.5.340.0030.05318.05
5.5.330.0070.04320.25
5.5.320.3030.03720.27
5.5.310.0300.05720.28
5.5.300.0030.06717.97
5.5.290.0000.06718.04
5.5.280.0100.06720.69
5.5.270.0130.08020.84
5.5.260.0070.08320.90
5.5.250.0170.05320.59
5.5.240.0230.07320.16
5.4.450.3170.04019.49
5.4.440.3300.03019.29
5.4.430.2970.03319.20
5.4.420.3130.04019.30
5.4.410.3200.03719.17
5.4.400.3230.03718.99
5.4.390.3030.04018.86
5.4.380.3300.03019.22
5.4.370.3600.03719.07
5.4.360.3030.04019.09
5.4.350.3230.03718.85
5.4.340.2930.04019.29
5.4.320.3130.04019.08
5.4.310.2370.04019.22
5.4.300.3300.04019.22
5.4.290.3330.04319.06
5.4.280.2930.03718.97
5.4.270.2900.04019.08
5.4.260.3230.04318.98
5.4.250.3270.04018.98
5.4.240.3200.03719.15
5.4.230.3000.04019.21
5.4.220.3270.03719.32
5.4.210.3330.04019.31
5.4.200.3200.03718.86
5.4.190.3230.04019.07
5.4.180.3130.02719.05
5.4.170.2930.03319.30
5.4.160.3200.04018.94
5.4.150.3230.04019.20
5.4.140.3130.03716.36
5.4.130.3330.03316.36
5.4.120.3330.04016.41
5.4.110.3730.03016.51
5.4.100.3200.03016.32
5.4.90.2930.03316.59
5.4.80.3430.03316.60
5.4.70.3470.03716.54
5.4.60.2900.03316.48
5.4.50.3370.04016.32
5.4.40.3200.04016.34
5.4.30.3230.03016.24
5.4.20.3170.04016.53
5.4.10.3270.03716.48
5.4.00.3070.03315.96
5.3.290.2900.04014.74
5.3.280.3200.05014.54
5.3.270.3400.04014.77
5.3.260.2930.04314.63
5.3.250.3230.03014.61
5.3.240.2930.04014.53
5.3.230.3200.03714.67
5.3.220.3230.04014.54
5.3.210.3230.03714.48
5.3.200.3100.02714.57
5.3.190.2630.03714.49
5.3.180.3000.03014.79
5.3.170.2570.04014.65
5.3.160.3130.03714.62
5.3.150.3000.03714.54
5.3.140.2900.04014.46
5.3.130.2570.03714.55
5.3.120.3000.03714.52
5.3.110.3030.03714.52
5.3.100.2530.03714.05
5.3.90.2930.03314.09
5.3.80.2370.04014.04
5.3.70.2700.03714.11
5.3.60.2770.03714.05
5.3.50.3200.03314.04
5.3.40.2900.03713.95
5.3.30.2100.03714.13
5.3.20.3000.03313.75
5.3.10.2930.04013.58
5.3.00.2830.04313.70
5.2.170.2570.02712.29
5.2.160.2800.03312.29
5.2.150.2630.03312.29
5.2.140.2470.03312.29
5.2.130.2730.03712.29
5.2.120.2770.02312.29
5.2.110.2730.03312.29
5.2.100.2870.02712.29
5.2.90.2800.03012.29
5.2.80.2700.02312.29
5.2.70.2470.03012.29
5.2.60.2730.03012.29
5.2.50.2570.03312.29
5.2.40.2000.03712.29
5.2.30.2270.03012.29
5.2.20.2300.02712.29
5.2.10.1500.03012.29
5.2.00.2330.03312.29
5.1.60.2100.02712.29
5.1.50.2300.02312.29
5.1.40.2200.02012.29
5.1.30.1900.02312.29
5.1.20.1930.03012.29
5.1.10.1930.03012.29
5.1.00.2130.02712.29
5.0.50.1170.02312.29
5.0.40.1170.01712.29
5.0.30.1130.03312.29
5.0.20.1100.01012.29
5.0.10.1000.01712.29
5.0.00.1170.03012.29
4.4.90.0670.02012.29
4.4.80.1170.01712.29
4.4.70.1030.02312.29
4.4.60.1070.01712.29
4.4.50.1000.01712.29
4.4.40.0900.02312.29
4.4.30.1000.01712.29
4.4.20.0800.01712.29
4.4.10.0930.02012.29
4.4.00.0630.03012.29
4.3.110.0270.01312.29
4.3.100.0830.01012.29
4.3.90.0570.02012.29
4.3.80.0670.02312.29
4.3.70.1000.01712.29
4.3.60.0570.02012.29
4.3.50.0770.01312.29
4.3.40.0430.02312.29
4.3.30.0130.01312.29
4.3.20.0270.01712.29
4.3.10.0070.02012.29
4.3.00.0270.01712.29

preferences:
48.24 ms | 401 KiB | 5 Q