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(){ parent::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.0070.00716.88
8.3.50.0140.00522.04
8.3.40.0070.00718.96
8.3.30.0080.00818.96
8.3.20.0000.00820.20
8.3.10.0000.00823.70
8.3.00.0040.00420.80
8.2.180.0160.00918.54
8.2.170.0100.01022.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00822.25
8.2.110.0060.00320.40
8.2.100.0070.00417.84
8.2.90.0020.00519.26
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.01117.93
8.2.50.0050.00318.07
8.2.40.0000.00718.22
8.2.30.0040.00417.87
8.2.20.0070.00017.57
8.2.10.0020.00517.66
8.2.00.0030.00517.48
8.1.280.0040.01425.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.85
8.1.230.0070.00421.00
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00517.43
8.1.180.0040.00418.10
8.1.170.0040.00718.34
8.1.160.0000.00721.95
8.1.150.0050.00218.55
8.1.140.0060.00317.41
8.1.130.0000.00717.93
8.1.120.0030.00317.24
8.1.110.0070.00017.30
8.1.100.0050.00317.36
8.1.90.0040.00417.29
8.1.80.0030.00517.42
8.1.70.0040.00417.33
8.1.60.0070.00017.61
8.1.50.0040.00417.42
8.1.40.0030.00617.46
8.1.30.0050.00317.61
8.1.20.0040.00417.66
8.1.10.0020.00517.45
8.1.00.0040.00417.47
8.0.300.0050.00218.77
8.0.290.0040.00417.04
8.0.280.0030.00318.48
8.0.270.0000.00717.26
8.0.260.0000.00716.92
8.0.250.0000.00716.96
8.0.240.0000.00716.97
8.0.230.0040.00416.92
8.0.220.0000.00716.83
8.0.210.0050.00316.89
8.0.200.0030.00316.84
8.0.190.0000.00716.85
8.0.180.0050.00316.88
8.0.170.0040.00416.77
8.0.160.0030.00316.96
8.0.150.0030.00316.88
8.0.140.0040.00416.90
8.0.130.0050.00013.24
8.0.120.0040.00416.82
8.0.110.0000.00716.89
8.0.100.0040.00417.00
8.0.90.0030.00316.76
8.0.80.0100.00716.85
8.0.70.0040.00416.92
8.0.60.0000.01016.75
8.0.50.0050.00216.85
8.0.30.0120.01017.14
8.0.20.0110.00617.40
8.0.10.0040.00417.01
8.0.00.0130.01116.65
7.4.330.0050.00015.00
7.4.320.0000.00616.42
7.4.300.0070.00016.55
7.4.290.0070.00016.60
7.4.280.0000.00716.63
7.4.270.0030.00316.53
7.4.260.0000.00816.46
7.4.250.0030.00316.57
7.4.240.0050.00316.50
7.4.230.0040.00416.68
7.4.220.0120.01316.53
7.4.210.0040.01016.52
7.4.200.0030.00316.33
7.4.190.0000.00716.66
7.4.160.0050.01116.46
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0110.00616.47
7.4.120.0090.01116.49
7.4.110.0070.01016.59
7.4.100.0070.01716.39
7.4.90.0150.00416.51
7.4.80.0070.01016.41
7.4.70.0100.00616.48
7.4.60.0100.01316.48
7.4.50.0030.00616.52
7.4.40.0110.00722.77
7.4.30.0070.01016.48
7.4.00.0100.00715.10
7.3.330.0030.00313.31
7.3.320.0050.00013.22
7.3.310.0040.00416.25
7.3.300.0070.00016.22
7.3.290.0070.00716.37
7.3.280.0050.01316.36
7.3.270.0030.01417.40
7.3.260.0170.00016.37
7.3.250.0110.01016.61
7.3.240.0070.01016.45
7.3.230.0110.00616.39
7.3.210.0090.00916.41
7.3.200.0090.00919.39
7.3.190.0090.00916.41
7.3.180.0030.01516.22
7.3.170.0060.01116.60
7.3.160.0140.01116.43
7.3.120.0030.00814.83
7.2.330.0170.00016.63
7.2.320.0070.01016.69
7.2.310.0060.01216.73
7.2.300.0060.00916.61
7.2.290.0090.01316.68
7.2.60.0090.00616.77
7.2.50.0070.00716.67
7.1.200.0120.00015.32
7.1.70.0030.00517.19
7.1.60.0100.01319.29
7.1.50.0150.00616.43
7.1.00.0070.07322.48
7.0.200.0030.00316.45
7.0.140.0000.07322.09
7.0.60.0070.06719.93
7.0.50.0030.06717.86
7.0.40.0100.08320.26
7.0.30.0200.04020.24
7.0.20.0300.07020.30
7.0.10.0000.04320.19
7.0.00.0100.08320.08
5.6.280.0000.07721.10
5.6.210.0170.07320.45
5.6.200.0070.07718.29
5.6.190.0000.09020.34
5.6.180.0170.05720.46
5.6.170.0330.04320.55
5.6.160.0000.04720.47
5.6.150.0100.06718.18
5.6.140.0130.05718.17
5.6.130.0130.07318.23
5.6.120.0100.08020.99
5.6.110.0170.07721.00
5.6.100.0100.06721.11
5.6.90.0070.04020.88
5.6.80.0100.07720.37
5.5.350.4300.04020.47
5.5.340.0070.07317.92
5.5.330.0170.08020.37
5.5.320.0600.05720.52
5.5.310.0230.04720.24
5.5.300.0030.05017.97
5.5.290.0030.04317.98
5.5.280.0130.07020.97
5.5.270.0130.08020.71
5.5.260.0100.04320.84
5.5.250.0100.08020.58
5.5.240.0200.02320.19
5.4.450.3130.03019.27
5.4.440.4000.04019.57
5.4.430.3730.03319.47
5.4.420.3630.04319.27
5.4.410.3630.04019.44
5.4.400.3600.03719.20
5.4.390.4330.04018.86
5.4.380.3830.03319.22
5.4.370.3870.03719.22
5.4.360.3730.03019.24
5.4.350.3800.04019.06
5.4.340.4430.04019.23
5.4.320.4100.03718.99
5.4.310.3800.03718.88
5.4.300.3730.04018.85
5.4.290.3270.03719.14
5.4.280.3470.03719.22
5.4.270.3400.04018.99
5.4.260.4030.03319.15
5.4.250.4270.04019.17
5.4.240.4000.03719.14
5.4.230.3730.03719.19
5.4.220.3870.04719.21
5.4.210.3670.03718.98
5.4.200.3200.04019.19
5.4.190.4230.03018.93
5.4.180.3900.04019.23
5.4.170.3630.03318.84
5.4.160.4170.03719.14
5.4.150.3900.03319.18
5.4.140.3700.03716.57
5.4.130.3400.04016.40
5.4.120.4400.04016.39
5.4.110.4030.03716.45
5.4.100.3430.03716.45
5.4.90.3930.03716.45
5.4.80.3630.04316.30
5.4.70.3700.04316.31
5.4.60.3870.03316.24
5.4.50.3730.03316.42
5.4.40.3470.03316.43
5.4.30.3930.02716.32
5.4.20.3500.03716.50
5.4.10.3230.03316.42
5.4.00.3500.03015.79
5.3.290.3930.03314.57
5.3.280.3870.04314.56
5.3.270.3670.04314.52
5.3.260.3630.04314.63
5.3.250.3670.04014.61
5.3.240.3200.03314.58
5.3.230.4630.05014.65
5.3.220.4600.03014.70
5.3.210.4530.04314.49
5.3.200.3830.04014.56
5.3.190.3470.03314.62
5.3.180.4030.04014.54
5.3.170.3870.03714.61
5.3.160.3930.04314.78
5.3.150.3770.04014.54
5.3.140.3470.03714.67
5.3.130.3430.03714.47
5.3.120.3270.04314.55
5.3.110.3330.03314.52
5.3.100.3470.03714.12
5.3.90.3500.03313.95
5.3.80.3530.03314.03
5.3.70.3930.04014.18
5.3.60.3430.03713.91
5.3.50.3000.03714.06
5.3.40.3500.04013.96
5.3.30.3470.03314.07
5.3.20.3870.04013.61
5.3.10.3970.02713.55
5.3.00.4830.03313.57
5.2.170.2970.03711.06
5.2.160.3000.02311.08
5.2.150.2870.03011.07
5.2.140.3030.03011.07
5.2.130.2900.03011.02
5.2.120.3100.03711.23
5.2.110.2730.03011.32
5.2.100.3370.02711.11
5.2.90.3400.02711.26
5.2.80.3470.03311.00
5.2.70.3400.03011.17
5.2.60.3500.02010.96
5.2.50.3900.02010.99
5.2.40.3070.03010.97
5.2.30.3170.02711.19
5.2.20.2800.02711.04
5.2.10.2900.02710.91
5.2.00.2530.03010.63
5.1.60.2430.02710.05
5.1.50.2600.03010.16
5.1.40.2470.02010.06
5.1.30.3000.03710.35
5.1.20.3070.02710.29
5.1.10.2770.02310.20
5.1.00.3070.0179.98
5.0.50.1730.0239.86
5.0.40.1800.0139.86
5.0.30.1430.0279.86
5.0.20.1430.0179.86
5.0.10.1630.0209.86
5.0.00.1570.0309.86
4.4.90.1500.0179.86
4.4.80.1400.0139.86
4.4.70.1430.0139.86
4.4.60.1670.0179.86
4.4.50.1400.0179.86
4.4.40.1470.0309.86
4.4.30.1270.0209.86
4.4.20.1600.0179.86
4.4.10.1700.0179.86
4.4.00.1770.0239.86
4.3.110.1670.0139.86
4.3.100.1730.0109.86
4.3.90.1770.0139.86
4.3.80.1600.0239.86
4.3.70.1530.0179.86
4.3.60.1800.0079.86
4.3.50.1400.0179.86
4.3.40.1800.0239.86
4.3.30.0300.0209.86
4.3.20.0830.0209.86
4.3.10.0770.0139.86
4.3.00.0930.0209.86

preferences:
40.44 ms | 401 KiB | 5 Q