3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassParent { public function __construct() { echo 'Im parent'; } } class ClassChild extends ClassParent { protected $parent = null; public function __construct() { echo 'Im child'; $this->parent = new self(); } } new ClassChild();

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.0150.00918.18
8.3.50.0170.01121.45
8.3.40.0190.00319.46
8.3.30.0140.01020.92
8.3.20.0110.00419.27
8.3.10.0110.00020.97
8.3.00.0030.00723.66
8.2.180.0090.01217.25
8.2.170.0200.00322.96
8.2.160.0100.01621.36
8.2.150.0090.00325.66
8.2.140.0070.00424.66
8.2.130.0110.00026.16
8.2.120.0120.00019.64
8.2.110.0070.00721.32
8.2.100.0070.01018.53
8.2.90.0050.00518.25
8.2.80.0100.00019.45
8.2.70.0090.00018.25
8.2.60.0000.01118.68
8.2.50.0070.00318.84
8.2.40.0030.00821.30
8.2.30.0030.00719.96
8.2.20.0030.00618.38
8.2.10.0000.01018.41
8.2.00.0030.00618.27
8.1.280.0210.00725.92
8.1.270.0080.00321.08
8.1.260.0110.00026.35
8.1.250.0070.00328.09
8.1.240.0090.00319.57
8.1.230.0160.00022.89
8.1.220.0030.00618.11
8.1.210.0000.00918.77
8.1.200.0100.00317.88
8.1.190.0030.00617.88
8.1.180.0060.00318.10
8.1.170.0060.00319.31
8.1.160.0040.00419.60
8.1.150.0030.00621.14
8.1.140.0000.01018.23
8.1.130.0030.00618.50
8.1.120.0090.00018.23
8.1.110.0050.00518.11
8.1.100.0040.00418.20
8.1.90.0060.00318.07
8.1.80.0030.00618.18
8.1.70.0090.00018.07
8.1.60.0070.00418.36
8.1.50.0070.00318.25
8.1.40.0050.00518.21
8.1.30.0090.00018.39
8.1.20.0070.00318.38
8.1.10.0060.00318.29
8.1.00.0060.00318.29
8.0.300.0070.00418.77
8.0.290.0090.00017.38
8.0.280.0060.00319.07
8.0.270.0080.00017.96
8.0.260.0040.00817.54
8.0.250.0030.00617.61
8.0.240.0030.00717.67
8.0.230.0060.00317.62
8.0.220.0040.00417.46
8.0.210.0040.00417.41
8.0.200.0090.00017.42
8.0.190.0030.00617.43
8.0.180.0080.00417.55
8.0.170.0060.00317.38
8.0.160.0000.00917.47
8.0.150.0000.01017.50
8.0.140.0030.00617.44
8.0.130.0040.00414.01
8.0.120.0050.00517.28
8.0.110.0070.00317.27
8.0.100.0070.00317.75
8.0.90.0090.00017.54
8.0.80.0070.01517.39
8.0.70.0000.00917.51
8.0.60.0030.00617.28
8.0.50.0030.00617.38
8.0.30.0350.01017.65
8.0.20.0340.00917.70
8.0.10.0060.00317.59
8.0.00.0270.01417.35
7.4.330.0040.00416.84
7.4.320.0030.00617.16
7.4.300.0030.00517.18
7.4.290.0070.00717.28
7.4.280.0040.00717.08
7.4.270.0070.00317.04
7.4.260.0070.00013.93
7.4.250.0080.00317.08
7.4.240.0030.00617.20
7.4.230.0080.00017.09
7.4.220.0200.01717.02
7.4.210.0160.01417.50
7.4.200.0030.00616.98
7.4.190.0090.00017.25
7.4.160.0320.01417.09
7.4.150.0290.01717.40
7.4.140.0170.02117.86
7.4.130.0360.01517.17
7.4.120.0330.01117.52
7.4.110.0190.01917.38
7.4.100.0260.00917.04
7.4.90.0140.01817.08
7.4.80.0100.02419.39
7.4.70.0110.02017.34
7.4.60.0130.01717.11
7.4.50.0040.00716.98
7.4.40.0190.00422.77
7.4.30.0210.01417.52
7.4.00.0100.01416.22
7.3.330.0000.00714.08
7.3.320.0050.00214.00
7.3.310.0080.00316.89
7.3.300.0030.00616.85
7.3.290.0100.02016.87
7.3.280.0100.01717.01
7.3.270.0290.01617.40
7.3.260.0420.02118.24
7.3.250.0240.01517.21
7.3.240.0160.02416.86
7.3.230.0160.01917.09
7.3.210.0180.01817.11
7.3.200.0240.01519.39
7.3.190.0290.00917.17
7.3.180.0230.02318.13
7.3.170.0150.01517.24
7.3.160.0100.02516.93
7.3.120.0200.00716.15
7.2.330.0230.01017.46
7.2.320.0110.03217.09
7.2.310.0190.00917.33
7.2.300.0170.01417.50
7.2.290.0180.01217.32
7.2.60.0100.01016.66
7.2.50.0080.01116.91
7.1.200.0120.00315.71
7.1.70.0030.00616.93
7.1.60.0210.01019.17
7.1.50.0230.00716.96
7.1.00.0030.03322.27
7.0.200.0100.00016.46
7.0.140.0130.06722.07
7.0.70.0800.05721.65
7.0.60.0630.06720.86
7.0.50.0730.05021.42
7.0.40.0100.08020.11
7.0.30.0200.08020.15
7.0.20.0100.08320.11
7.0.10.0030.05720.17
7.0.00.0100.08720.09
5.6.280.0100.07323.09
5.6.220.0000.05023.72
5.6.210.0100.07022.40
5.6.200.0070.07023.54
5.6.190.0200.07723.06
5.6.180.0100.05023.28
5.6.170.0130.09723.15
5.6.160.0230.07723.23
5.6.150.0170.08023.03
5.6.140.0130.08323.08
5.6.130.0100.08324.22
5.6.120.0070.09323.08
5.6.110.0170.08022.92
5.6.100.0200.05723.02
5.6.90.0100.08323.24
5.6.80.0130.05723.38
5.6.70.0130.08022.25
5.6.60.0170.08022.41
5.6.50.0070.05323.67
5.6.40.0200.08322.41
5.6.30.0170.07722.36
5.6.20.0170.08022.45
5.6.10.0100.08322.54
5.6.00.0130.07322.96
5.5.360.0100.04023.64
5.5.350.0030.05022.38
5.5.340.0100.08722.73
5.5.330.0070.05323.39
5.5.320.0170.08322.89
5.5.310.0130.03722.93
5.5.300.0100.07722.67
5.5.290.0070.06323.43
5.5.280.0130.04023.70
5.5.270.0100.07723.45
5.5.260.0200.08023.54
5.5.250.0070.07322.85
5.5.240.0030.05722.62
5.5.230.0100.05322.34
5.5.220.0170.07022.07
5.5.210.0170.07022.18
5.5.200.0100.08721.92
5.5.190.0070.07022.21
5.5.180.0130.05022.72
5.5.160.0100.08322.00
5.5.150.0030.05323.04
5.5.140.0100.07722.68
5.5.130.0170.07022.34
5.5.120.0200.06322.28
5.5.110.0100.08322.19
5.5.100.0130.06322.53
5.5.90.0130.08322.04
5.5.80.0100.08022.03
5.5.70.0100.08322.00
5.5.60.0130.08022.07
5.5.50.0170.08022.02
5.5.40.0100.07322.58
5.5.30.0030.08721.89
5.5.20.0130.07022.21
5.5.10.0170.07721.98
5.5.00.0070.08322.00
5.4.450.0100.07321.47
5.4.440.0070.08321.23
5.4.430.0170.07321.20
5.4.420.0030.08021.25
5.4.410.0130.03721.86
5.4.400.0100.07021.49
5.4.390.0030.09020.76
5.4.380.0170.07020.95
5.4.370.0100.04322.30
5.4.360.0200.07321.08
5.4.350.0100.08320.92
5.4.340.0100.08720.92
5.4.320.0070.06720.76
5.4.310.0100.06021.37
5.4.300.0100.03721.71
5.4.290.0230.07020.76
5.4.280.0130.08320.68
5.4.270.0170.07021.00
5.4.260.0100.07720.71
5.4.250.0100.07720.89
5.4.240.0100.08020.86
5.4.230.0130.08020.69
5.4.220.0200.05720.85
5.4.210.0100.07720.83
5.4.200.0170.08021.01
5.4.190.0130.03722.04
5.4.180.0100.06721.15
5.4.170.0100.06320.82
5.4.160.0100.07020.67
5.4.150.0200.06320.89
5.4.140.0130.04719.19
5.4.130.0130.07318.33
5.4.120.0130.06718.23
5.4.110.0070.07018.36
5.4.100.0170.07318.23
5.4.90.0170.06318.20
5.4.80.0130.07318.54
5.4.70.0030.04719.24
5.4.60.0130.07718.33
5.4.50.0070.07318.40
5.4.40.0170.07018.15
5.4.30.0170.07318.21
5.4.20.0100.08018.32
5.4.10.0130.05018.27
5.4.00.0130.03017.67
5.3.290.0200.06717.52
5.3.280.0070.08317.37
5.3.270.0100.08317.45
5.3.260.0170.05317.30
5.3.250.0130.07717.29
5.3.240.0070.06717.30
5.3.230.0170.07017.36
5.3.220.0100.04317.25
5.3.210.0030.04017.29
5.3.200.0030.08017.42
5.3.190.0170.06717.34
5.3.180.0170.05017.51
5.3.170.0170.07717.34
5.3.160.0130.07717.29
5.3.150.0170.07717.32
5.3.140.0030.06017.28
5.3.130.0130.08317.41
5.3.120.0130.05017.36
5.3.110.0200.07017.30
5.3.100.0030.04316.71
5.3.90.0070.03716.73
5.3.80.0030.04016.82
5.3.70.0130.03017.54
5.3.60.0070.04016.93
5.3.50.0130.07016.63
5.3.40.0030.04016.78
5.3.30.0070.03717.35
5.3.20.0030.03716.47
5.3.10.0030.04316.38
5.3.00.0070.03316.29
5.2.170.0070.03015.85
5.2.160.0070.03315.85
5.2.150.0000.03015.85
5.2.140.0130.03315.85
5.2.130.0030.02715.85
5.2.120.0030.03015.85
5.2.110.0030.03015.85
5.2.100.0100.03015.85
5.2.90.0000.03015.85
5.2.80.0070.06315.85
5.2.70.0100.03715.85
5.2.60.0030.03315.85
5.2.50.0030.03715.85
5.2.40.0100.05315.85
5.2.30.0000.04315.85
5.2.20.0030.02715.85
5.2.10.0030.03015.85
5.2.00.0000.03315.85
5.1.60.0070.02015.85
5.1.50.0000.02715.85
5.1.40.0030.03715.85
5.1.30.0030.03715.85
5.1.20.0000.03015.85
5.1.10.0070.02715.85
5.1.00.0000.03015.85
5.0.50.0030.02315.85
5.0.40.0070.02015.85
5.0.30.0030.03715.85
5.0.20.0070.01715.85
5.0.10.0030.01715.85
5.0.00.0030.03715.85
4.4.90.0000.01715.85
4.4.80.0000.01715.85
4.4.70.0030.02315.85
4.4.60.0000.01315.85
4.4.50.0000.02015.85
4.4.40.0070.02015.85
4.4.30.0000.01715.85
4.4.20.0000.01715.85
4.4.10.0000.01715.85
4.4.00.0030.02315.85
4.3.110.0000.01315.85
4.3.100.0000.02015.85
4.3.90.0030.01015.85
4.3.80.0000.02715.85
4.3.70.0000.02015.85
4.3.60.0030.01315.85
4.3.50.0000.01315.85
4.3.40.0000.02315.85
4.3.30.0000.01715.85
4.3.20.0030.04715.85
4.3.10.0030.01315.85
4.3.00.0000.01315.85

preferences:
40.89 ms | 401 KiB | 5 Q