3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ //public $array; function __construct(){ print("in parent"); } } class MyTest extends Test{ function __construct(){ Test::construct(); print("in child"); } } $parent = new Test(); $child = new MyTest(); ?>

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.0060.00918.43
8.3.50.0130.00521.91
8.3.40.0070.01118.63
8.3.30.0070.01419.01
8.3.20.0040.00420.04
8.3.10.0040.00421.97
8.3.00.0080.00022.52
8.2.180.0120.00618.38
8.2.170.0000.01522.96
8.2.160.0000.01819.34
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0000.00819.26
8.2.110.0000.00922.30
8.2.100.0090.00317.75
8.2.90.0060.00317.63
8.2.80.0080.00017.97
8.2.70.0030.00517.80
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0000.00820.52
8.2.30.0040.00418.03
8.2.20.0000.00717.66
8.2.10.0040.00417.74
8.2.00.0000.00717.66
8.1.280.0140.00725.92
8.1.270.0040.00422.10
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00323.97
8.1.230.0070.00718.83
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.13
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0000.00722.00
8.1.150.0000.00718.63
8.1.140.0030.00717.38
8.1.130.0000.00717.79
8.1.120.0000.00717.36
8.1.110.0070.00017.35
8.1.100.0040.00417.38
8.1.90.0050.00217.29
8.1.80.0050.00217.43
8.1.70.0000.00817.34
8.1.60.0000.00717.63
8.1.50.0040.00417.57
8.1.40.0000.00817.40
8.1.30.0030.00517.61
8.1.20.0080.00017.60
8.1.10.0050.00217.61
8.1.00.0000.00817.54
8.0.300.0040.00419.73
8.0.290.0060.00316.75
8.0.280.0030.00318.39
8.0.270.0040.00417.13
8.0.260.0000.00816.92
8.0.250.0080.00017.00
8.0.240.0030.00316.94
8.0.230.0030.00316.99
8.0.220.0030.00316.89
8.0.210.0030.00316.88
8.0.200.0000.00716.91
8.0.190.0050.00216.88
8.0.180.0030.00416.93
8.0.170.0040.00416.82
8.0.160.0040.00416.78
8.0.150.0040.00416.72
8.0.140.0070.00016.70
8.0.130.0030.00313.40
8.0.120.0000.00816.88
8.0.110.0040.00416.84
8.0.100.0000.00716.76
8.0.90.0050.00216.75
8.0.80.0030.01216.92
8.0.70.0000.00716.95
8.0.60.0070.00016.85
8.0.50.0070.00016.79
8.0.30.0110.00816.90
8.0.20.0110.00817.40
8.0.10.0030.00516.97
8.0.00.0050.01316.84
7.4.330.0000.00515.07
7.4.320.0060.00016.36
7.4.300.0030.00516.50
7.4.290.0000.00816.42
7.4.280.0040.00416.49
7.4.270.0000.00616.63
7.4.260.0090.00016.57
7.4.250.0000.00816.48
7.4.240.0040.00316.60
7.4.230.0070.00016.60
7.4.220.0100.00716.56
7.4.210.0070.01016.54
7.4.200.0070.00016.55
7.4.190.0070.00016.57
7.4.160.0110.00416.55
7.4.150.0030.01517.40
7.4.140.0080.01217.86
7.4.130.0110.00816.51
7.4.120.0140.00616.52
7.4.110.0030.01616.36
7.4.100.0080.00816.37
7.4.90.0090.00916.52
7.4.80.0090.00919.39
7.4.70.0110.00516.57
7.4.60.0110.00916.58
7.4.50.0000.00916.30
7.4.40.0030.01122.77
7.4.30.0120.00616.39
7.4.00.0040.01214.94
7.3.330.0030.00313.36
7.3.320.0060.00013.18
7.3.310.0030.00316.31
7.3.300.0060.00016.37
7.3.290.0080.00616.27
7.3.280.0140.00416.36
7.3.270.0160.00617.40
7.3.260.0100.00616.38
7.3.250.0070.01016.32
7.3.240.0220.00016.45
7.3.230.0110.00716.59
7.3.210.0100.00716.49
7.3.200.0060.01019.39
7.3.190.0110.01116.34
7.3.180.0060.00916.32
7.3.170.0080.00816.34
7.3.160.0060.00916.50
7.3.120.0050.01014.68
7.3.110.0100.00314.70
7.3.100.0070.01014.82
7.3.90.0070.00314.90
7.3.80.0030.01014.91
7.3.70.0030.01414.67
7.3.60.0030.01114.75
7.3.50.0000.01114.70
7.3.40.0030.01014.85
7.3.30.0030.01414.84
7.3.20.0030.00716.70
7.3.10.0080.00316.67
7.3.00.0060.00916.59
7.2.330.0080.01116.72
7.2.320.0030.01416.35
7.2.310.0140.00316.75
7.2.300.0110.01416.62
7.2.290.0100.00616.28
7.2.250.0030.01315.10
7.2.240.0110.00715.09
7.2.230.0060.00915.11
7.2.220.0030.00615.20
7.2.210.0030.01014.68
7.2.200.0140.00314.77
7.2.190.0030.01415.13
7.2.180.0080.00615.09
7.2.170.0090.00614.98
7.2.60.0070.00716.79
7.2.00.0070.01019.54
7.1.330.0060.00615.64
7.1.320.0120.00315.70
7.1.310.0030.00915.73
7.1.300.0140.00315.54
7.1.290.0070.00315.71
7.1.280.0140.00015.45
7.1.270.0080.00815.66
7.1.260.0000.01415.64
7.1.200.0040.00415.75
7.1.100.0070.00717.66
7.1.70.0030.01016.95
7.1.60.0110.01419.82
7.1.50.0100.01416.86
7.1.00.0030.07322.45
7.0.200.0050.00316.61
7.0.140.0030.07321.99
7.0.60.0100.06721.73
7.0.50.0000.04317.86
7.0.40.0070.07020.36
7.0.30.0170.06020.30
7.0.20.0370.07720.19
7.0.10.0170.07720.19
7.0.00.0100.08320.20
5.6.280.0000.07321.15
5.6.210.0030.04020.65
5.6.200.0030.09018.22
5.6.190.0130.07720.47
5.6.180.0500.04720.52
5.6.170.0300.04320.57
5.6.160.0100.08320.44
5.6.150.0100.08318.15
5.6.140.0070.04318.18
5.6.130.0030.04018.30
5.6.120.0000.05021.14
5.6.110.0100.07720.96
5.6.100.0070.08321.06
5.6.90.0070.04021.13
5.6.80.0070.04020.44
5.5.350.0230.07320.41
5.5.340.0000.05018.04
5.5.330.0100.08320.43
5.5.320.0670.06720.52
5.5.310.0230.06720.30
5.5.300.0030.04717.99
5.5.290.0100.06317.98
5.5.280.0000.06720.74
5.5.270.0070.04720.68
5.5.260.0100.03320.96
5.5.250.0100.08320.61
5.5.240.0100.07020.18
5.4.450.3770.04019.30
5.4.440.2870.04319.45
5.4.430.3700.04319.39
5.4.420.4400.05719.25
5.4.410.4270.04319.42
5.4.400.3900.05018.95
5.4.390.3970.03318.97
5.4.380.3130.04018.93
5.4.370.3870.03318.95
5.4.360.4030.04319.15
5.4.350.3430.03719.27
5.4.340.2230.04018.99
5.4.320.3830.03719.26
5.4.310.3870.03318.93
5.4.300.3700.03319.04
5.4.290.4330.02319.14
5.4.280.3970.03719.23
5.4.270.3900.04019.20
5.4.260.3930.03319.12
5.4.250.3970.03319.23
5.4.240.4470.03718.96
5.4.230.4830.04019.12
5.4.220.3600.04318.96
5.4.210.3730.03018.94
5.4.200.3500.03718.97
5.4.190.0000.04719.13
5.4.180.0030.06718.96
5.4.170.3770.03318.97
5.4.160.4100.03319.20
5.4.150.4030.04019.07
5.4.140.3970.03716.54
5.4.130.3700.03316.43
5.4.120.3870.03716.45
5.4.110.4000.03316.32
5.4.100.4030.03716.52
5.4.90.3930.03316.55
5.4.80.0130.05316.48
5.4.70.3400.03716.53
5.4.60.3930.04016.50
5.4.50.3930.03716.48
5.4.40.3830.04016.24
5.4.30.3970.03016.32
5.4.20.3670.03316.48
5.4.10.4270.04316.41
5.4.00.3370.02715.85
5.3.290.3900.04714.67
5.3.280.4600.03714.61
5.3.270.4000.04014.64
5.3.260.3830.03314.78
5.3.250.4030.04014.68
5.3.240.3730.03314.66
5.3.230.3870.04014.60
5.3.220.3870.04014.45
5.3.210.4030.03714.60
5.3.200.3630.04014.61
5.3.190.1930.04014.57
5.3.180.0030.05314.46
5.3.170.0100.07314.55
5.3.160.3770.03714.63
5.3.150.3630.03714.57
5.3.140.4300.03314.58
5.3.130.3800.04014.44
5.3.120.3930.03014.56
5.3.110.3670.03714.46
5.3.100.4170.03314.08
5.3.90.4630.04014.02
5.3.80.3500.03314.18
5.3.70.3770.03314.05
5.3.60.4170.04013.95
5.3.50.4130.04014.00
5.3.40.3730.03013.96
5.3.30.3900.03713.80
5.3.20.3800.03313.69
5.3.10.3730.04013.71
5.3.00.3770.03313.70
5.2.170.3070.02711.30
5.2.160.3200.03011.25
5.2.150.3170.03011.12
5.2.140.3270.02711.14
5.2.130.3100.02311.11
5.2.120.3430.02711.16
5.2.110.3570.02711.10
5.2.100.3300.02311.11
5.2.90.3470.03711.02
5.2.80.3270.03311.11
5.2.70.3270.03011.25
5.2.60.3000.03011.00
5.2.50.3770.02010.91
5.2.40.2200.02711.07
5.2.30.3270.03310.93
5.2.20.3230.03010.95
5.2.10.2870.03310.83
5.2.00.3070.03310.88
5.1.60.3230.0339.97
5.1.50.3030.02310.14
5.1.40.3130.0209.96
5.1.30.2900.03310.39
5.1.20.2770.01710.36
5.1.10.2570.02710.13
5.1.00.3200.03010.13
5.0.50.1330.0208.59
5.0.40.1500.0208.46
5.0.30.1500.0378.25
5.0.20.1370.0208.18
5.0.10.1230.0238.32
5.0.00.1270.0278.21
4.4.90.1270.0135.89
4.4.80.1470.0175.84
4.4.70.1500.0135.83
4.4.60.1470.0175.84
4.4.50.1800.0205.91
4.4.40.2070.0205.85
4.4.30.1630.0135.90
4.4.20.1400.0205.83
4.4.10.1470.0175.89
4.4.00.1230.0275.86
4.3.110.1630.0105.80
4.3.100.1330.0135.80
4.3.90.1500.0135.80
4.3.80.1270.0205.80
4.3.70.1430.0175.80
4.3.60.1500.0135.80
4.3.50.1430.0175.80
4.3.40.1430.0275.80
4.3.30.0670.0135.80
4.3.20.0670.0135.80
4.3.10.0700.0175.80
4.3.00.0330.0135.80

preferences:
43.49 ms | 401 KiB | 5 Q