3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class D { public $data = 'data'; } Class T { public $firstChild; function __construct(D $d) { $this->firstChild = $d; } } $d = new D; $item = new T($d); echo "{$item->firstChild}->data\n";

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.0120.00316.63
8.3.50.0100.00722.91
8.3.40.0130.00318.57
8.3.30.0110.00319.05
8.3.20.0000.00820.30
8.3.10.0040.00423.54
8.3.00.0080.00019.50
8.2.180.0140.00416.75
8.2.170.0170.00322.96
8.2.160.0100.00320.32
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.01226.16
8.2.120.0050.00320.90
8.2.110.0070.00321.98
8.2.100.0060.00618.16
8.2.90.0070.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0000.00818.04
8.2.50.0060.00318.07
8.2.40.0060.00318.28
8.2.30.0050.00318.09
8.2.20.0030.00617.78
8.2.10.0000.00818.05
8.2.00.0040.00417.83
8.1.280.0030.01225.92
8.1.270.0110.00023.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00422.03
8.1.230.0060.00619.21
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0040.00421.99
8.1.150.0030.00518.73
8.1.140.0040.00417.43
8.1.130.0000.00717.73
8.1.120.0040.00417.39
8.1.110.0030.00517.26
8.1.100.0030.00317.40
8.1.90.0110.00017.39
8.1.80.0000.00817.25
8.1.70.0000.00717.30
8.1.60.0000.00717.53
8.1.50.0030.00617.48
8.1.40.0040.00417.51
8.1.30.0040.00417.57
8.1.20.0050.00217.58
8.1.10.0040.00417.47
8.1.00.0040.00417.53
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0070.00018.44
8.0.270.0070.00017.12
8.0.260.0080.00017.29
8.0.250.0030.00316.99
8.0.240.0000.01017.02
8.0.230.0050.00317.02
8.0.220.0030.00316.86
8.0.210.0040.00416.91
8.0.200.0030.00316.98
8.0.190.0040.00416.95
8.0.180.0030.00516.95
8.0.170.0040.00416.87
8.0.160.0000.00716.82
8.0.150.0050.00316.91
8.0.140.0040.00316.89
8.0.130.0000.00613.31
8.0.120.0080.00017.00
8.0.110.0080.00016.91
8.0.100.0040.00416.98
8.0.90.0000.00716.82
8.0.80.0090.01216.93
8.0.70.0000.00716.83
8.0.60.0050.00316.94
8.0.50.0070.00016.84
8.0.30.0110.00816.94
8.0.20.0080.01017.40
8.0.10.0000.00717.00
8.0.00.0060.01016.80
7.4.330.0030.00315.10
7.4.320.0030.00316.57
7.4.300.0000.00616.59
7.4.290.0000.00616.62
7.4.280.0000.01116.48
7.4.270.0030.00316.64
7.4.260.0040.00416.57
7.4.250.0040.00416.51
7.4.240.0010.00616.55
7.4.230.0030.00316.68
7.4.220.0100.01616.71
7.4.210.0080.00816.62
7.4.200.0000.00816.60
7.4.160.0120.00316.41
7.4.150.0060.01217.40
7.4.140.0050.01317.86
7.4.130.0100.00716.46
7.4.120.0080.01116.63
7.4.110.0180.00716.63
7.4.100.0100.00716.57
7.4.90.0190.00416.62
7.4.80.0070.01019.39
7.4.70.0130.00816.41
7.4.60.0180.00016.38
7.4.50.0000.00616.46
7.4.40.0140.00316.34
7.4.30.0030.02016.60
7.4.00.0060.00614.99
7.3.330.0000.00513.16
7.3.320.0060.00013.27
7.3.310.0030.00316.21
7.3.300.0030.00616.37
7.3.290.0040.01516.38
7.3.280.0060.01016.34
7.3.270.0100.00717.40
7.3.260.0090.00916.20
7.3.250.0090.00816.47
7.3.240.0100.01016.39
7.3.230.0140.00416.55
7.3.210.0090.00916.40
7.3.200.0130.00319.39
7.3.190.0080.00816.45
7.3.180.0160.00016.31
7.3.170.0100.00716.46
7.3.160.0100.00616.40
7.2.330.0120.00616.51
7.2.320.0070.01016.39
7.2.310.0120.00616.64
7.2.300.0040.01216.61
7.2.290.0060.01016.71
7.2.60.0170.00415.93
7.2.00.0030.00919.25
7.1.200.0000.01215.99
7.1.100.0000.01218.23
7.1.70.0030.00517.07
7.1.60.0060.01219.40
7.1.50.0110.01116.71
7.1.00.0030.07722.33
7.0.200.0050.00216.54
7.0.140.0070.07022.13
7.0.60.0100.08321.83
7.0.50.0030.04317.86
7.0.40.0100.08320.20
7.0.30.0430.04720.19
7.0.20.0200.04320.22
7.0.10.0330.07020.30
7.0.00.0070.04020.09
5.6.280.0030.07320.99
5.6.210.0100.08020.61
5.6.200.0030.07018.19
5.6.190.0130.08320.50
5.6.180.0430.05320.55
5.6.170.0270.05020.60
5.6.160.0100.08020.46
5.6.150.0130.07718.16
5.6.140.0170.06318.29
5.6.130.0030.05318.25
5.6.120.0030.05021.04
5.6.110.0070.06321.07
5.6.100.0070.08021.11
5.6.90.0070.08720.88
5.6.80.0100.03320.41
5.5.350.0000.04720.41
5.5.340.0130.07317.93
5.5.330.0070.08320.40
5.5.320.0370.04020.34
5.5.310.0300.04320.32
5.5.300.0070.06717.98
5.5.290.0070.07718.07
5.5.280.0070.08720.77
5.5.270.0100.03720.84
5.5.260.0000.07020.80
5.5.250.0100.05720.58
5.5.240.0230.05720.26
5.4.450.0530.03719.64
5.4.440.0300.05019.55
5.4.430.0230.04319.27
5.4.420.0330.04019.54
5.4.410.0330.04719.29
5.4.400.0230.04719.09
5.4.390.0400.03718.84
5.4.380.0400.04718.63
5.4.370.0400.04718.77
5.4.360.0300.06018.80
5.4.350.0530.05318.77
5.4.340.0500.04718.75
5.4.320.0080.03412.50
5.4.310.0070.03712.50
5.4.300.0060.03512.50
5.4.290.0030.04012.50
5.4.280.0060.03512.40
5.4.270.0050.03812.40
5.4.260.0070.03912.39
5.4.250.0050.03812.39
5.4.240.0060.03612.39
5.4.230.0120.03512.39
5.4.220.0050.03812.38
5.4.210.0060.03412.39
5.4.200.0050.03812.38
5.4.190.0040.03712.38
5.4.180.0060.03612.38
5.4.170.0050.04212.39
5.4.160.0070.03412.39
5.4.150.0070.03412.39
5.4.140.0060.03912.07
5.4.130.0070.03412.06
5.4.120.0080.03312.02
5.4.110.0060.03512.02
5.4.100.0090.03212.02
5.4.90.0090.03512.02
5.4.80.0080.03412.02
5.4.70.0070.03412.01
5.4.60.0100.03512.01
5.4.50.0060.03412.01
5.4.40.0100.03212.00
5.4.30.0060.03711.99
5.4.20.0050.03612.00
5.4.10.0050.03511.99
5.4.00.0050.03711.49
5.3.290.0080.03812.80
5.3.280.0040.04012.71
5.3.270.0050.03912.72
5.3.260.0070.03912.72
5.3.250.0080.03712.72
5.3.240.0100.03912.72
5.3.230.0050.03812.71
5.3.220.0070.03712.68
5.3.210.0070.03812.68
5.3.200.0080.03412.68
5.3.190.0080.03912.68
5.3.180.0030.04012.68
5.3.170.0030.04312.67
5.3.160.0070.03512.68
5.3.150.0030.04012.67
5.3.140.0060.03812.66
5.3.130.0060.04012.66
5.3.120.0110.03512.66
5.3.110.0040.04212.66
5.3.100.0050.04212.13
5.3.90.0050.04212.11
5.3.80.0050.03812.09
5.3.70.0070.03712.09
5.3.60.0060.03712.08
5.3.50.0090.03412.03
5.3.40.0040.03912.02
5.3.30.0040.03711.99
5.3.20.0060.03411.77
5.3.10.0040.03611.73
5.3.00.0090.03211.71
5.2.170.0050.0309.22
5.2.160.0020.0319.22
5.2.150.0050.0319.22
5.2.140.0050.0309.21
5.2.130.0040.0299.18
5.2.120.0020.0319.18
5.2.110.0040.0389.18
5.2.100.0050.0289.18
5.2.90.0040.0299.18
5.2.80.0060.0299.18
5.2.70.0070.0289.18
5.2.60.0060.0289.13
5.2.50.0060.0299.10
5.2.40.0050.0299.08
5.2.30.0040.0309.05
5.2.20.0060.0289.04
5.2.10.0030.0308.95
5.2.00.0040.0308.81
5.1.60.0060.0248.09
5.1.50.0010.0278.08
5.1.40.0020.0268.06
5.1.30.0040.0268.42
5.1.20.0050.0338.43
5.1.10.0050.0248.16
5.1.00.0030.0268.16
5.0.50.0020.0226.64
5.0.40.0060.0186.50
5.0.30.0040.0306.31
5.0.20.0040.0226.29
5.0.10.0030.0216.26
5.0.00.0030.0306.25
4.4.90.0010.0164.78
4.4.80.0020.0154.75
4.4.70.0030.0154.75
4.4.60.0000.0184.76
4.4.50.0050.0134.77
4.4.40.0020.0264.71
4.4.30.0050.0144.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0030.0384.76
4.3.110.0060.0204.67
4.3.100.0030.0144.66
4.3.90.0020.0154.63
4.3.80.0000.0274.59
4.3.70.0020.0224.63
4.3.60.0030.0144.63
4.3.50.0060.0204.63
4.3.40.0040.0284.54
4.3.30.0030.0213.30
4.3.20.0030.0153.28
4.3.10.0030.0253.24
4.3.00.0030.01715.62

preferences:
37.68 ms | 400 KiB | 5 Q