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.0140.00016.75
8.3.50.0080.01122.83
8.3.40.0090.00618.79
8.3.30.0110.00318.90
8.3.20.0040.00420.20
8.3.10.0040.00423.48
8.3.00.0040.00419.50
8.2.180.0070.00716.38
8.2.170.0000.01422.96
8.2.160.0180.00420.35
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0130.00626.16
8.2.120.0000.00820.94
8.2.110.0000.00922.10
8.2.100.0030.00918.03
8.2.90.0060.00319.28
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0060.00319.95
8.2.30.0050.00217.96
8.2.20.0000.00817.59
8.2.10.0000.00818.10
8.2.00.0020.00517.69
8.1.280.0140.01125.92
8.1.270.0070.00323.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00022.20
8.1.230.0080.00418.82
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0040.00421.89
8.1.150.0000.00718.91
8.1.140.0000.00717.39
8.1.130.0030.00317.82
8.1.120.0020.00517.33
8.1.110.0040.00417.28
8.1.100.0040.00417.40
8.1.90.0000.00717.27
8.1.80.0040.00417.34
8.1.70.0030.00317.39
8.1.60.0080.00017.55
8.1.50.0000.00817.51
8.1.40.0040.00417.45
8.1.30.0090.00017.55
8.1.20.0050.00317.63
8.1.10.0050.00317.46
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.44
8.0.270.0030.00317.16
8.0.260.0000.00717.17
8.0.250.0040.00417.07
8.0.240.0030.00716.89
8.0.230.0080.00016.90
8.0.220.0000.00717.05
8.0.210.0000.00716.92
8.0.200.0060.00316.87
8.0.190.0000.00816.91
8.0.180.0000.00716.80
8.0.170.0060.00317.04
8.0.160.0070.00016.91
8.0.150.0000.00716.91
8.0.140.0070.00016.93
8.0.130.0060.00013.42
8.0.120.0040.00416.93
8.0.110.0000.00816.92
8.0.100.0040.00416.82
8.0.90.0000.00716.91
8.0.80.0130.00316.90
8.0.70.0000.00716.90
8.0.60.0040.00416.93
8.0.50.0080.00016.94
8.0.30.0110.01017.06
8.0.20.0080.01017.40
8.0.10.0030.00316.93
8.0.00.0120.00516.85
7.4.330.0050.00015.13
7.4.320.0000.00616.58
7.4.300.0000.00616.52
7.4.290.0030.00316.58
7.4.280.0070.00316.60
7.4.270.0030.00316.56
7.4.260.0030.00316.63
7.4.250.0000.00716.57
7.4.240.0020.00516.58
7.4.230.0000.00716.60
7.4.220.0190.00616.41
7.4.210.0030.01016.54
7.4.200.0070.00016.60
7.4.160.0090.00616.56
7.4.150.0060.01317.40
7.4.140.0100.00817.86
7.4.130.0110.00816.58
7.4.120.0050.01216.40
7.4.110.0200.00616.62
7.4.100.0040.01816.55
7.4.90.0110.01216.57
7.4.80.0140.00719.39
7.4.70.0080.00816.48
7.4.60.0070.01016.36
7.4.50.0000.00616.45
7.4.40.0100.00716.48
7.4.30.0130.00416.56
7.4.10.0060.01215.21
7.4.00.0090.00814.87
7.3.330.0060.00013.07
7.3.320.0000.00713.27
7.3.310.0050.00216.40
7.3.300.0050.00316.29
7.3.290.0080.00516.29
7.3.280.0090.00716.29
7.3.270.0030.01317.40
7.3.260.0210.01316.57
7.3.250.0120.00516.29
7.3.240.0130.00316.38
7.3.230.0030.01316.53
7.3.210.0090.00816.14
7.3.200.0120.00619.39
7.3.190.0040.01216.17
7.3.180.0060.00916.40
7.3.170.0070.01016.31
7.3.160.0090.00616.52
7.3.130.0030.01314.81
7.3.120.0120.00514.74
7.3.110.0080.00914.87
7.3.100.0030.01014.81
7.3.90.0090.00214.82
7.3.80.0070.00814.79
7.3.70.0070.00714.74
7.3.60.0070.00514.80
7.3.50.0020.00914.60
7.3.40.0040.00814.78
7.3.30.0020.01114.78
7.3.20.0090.00516.59
7.3.10.0060.00716.54
7.3.00.0040.00816.61
7.2.330.0070.01416.39
7.2.320.0150.00616.74
7.2.310.0070.01116.55
7.2.300.0070.01016.55
7.2.290.0080.00816.61
7.2.260.0030.01614.89
7.2.250.0040.01515.16
7.2.240.0080.00915.06
7.2.230.0100.00815.06
7.2.220.0110.00515.02
7.2.210.0050.01015.02
7.2.200.0080.00514.99
7.2.190.0070.00614.92
7.2.180.0070.00715.04
7.2.170.0050.00914.92
7.2.160.0030.00614.72
7.2.150.0030.00916.63
7.2.140.0030.00717.07
7.2.130.0060.00416.86
7.2.120.0050.00716.93
7.2.110.0070.00517.01
7.2.100.0040.00717.05
7.2.90.0000.01216.78
7.2.80.0050.00716.82
7.2.70.0030.00916.71
7.2.60.0030.00817.00
7.2.50.0030.00816.82
7.2.40.0000.01316.98
7.2.30.0080.00616.85
7.2.20.0030.00716.88
7.2.10.0030.01016.80
7.2.00.0050.00817.74
7.1.330.0040.00915.89
7.1.320.0060.00815.79
7.1.310.0080.00415.80
7.1.300.0050.00815.79
7.1.290.0050.00915.76
7.1.280.0040.00915.83
7.1.270.0070.00615.81
7.1.260.0030.00915.62
7.1.250.0070.00715.85
7.1.240.0000.00815.75
7.1.230.0040.00815.76
7.1.220.0000.01715.39
7.1.210.0000.00915.71
7.1.200.0040.00815.47
7.1.190.0000.01315.73
7.1.180.0070.00715.45
7.1.170.0030.00915.78
7.1.160.0100.00315.81
7.1.150.0070.00715.74
7.1.140.0040.01115.97
7.1.130.0070.01015.68
7.1.120.0070.00415.84
7.1.110.0000.00915.55
7.1.100.0060.00617.12
7.1.90.0030.00615.75
7.1.80.0060.00615.88
7.1.70.0020.01016.51
7.1.60.0110.00717.58
7.1.50.0050.01216.40
7.1.40.0000.01615.62
7.1.30.0030.01015.81
7.1.20.0090.00015.77
7.1.10.0050.00315.63
7.1.00.0050.04119.07
7.0.330.0100.00315.53
7.0.320.0060.00915.25
7.0.310.0030.00915.24
7.0.300.0000.01215.48
7.0.290.0000.01515.48
7.0.280.0080.00415.38
7.0.270.0040.00715.37
7.0.260.0080.00015.41
7.0.250.0040.01115.59
7.0.240.0090.00315.42
7.0.230.0100.00315.41
7.0.220.0130.00315.39
7.0.210.0000.01215.44
7.0.200.0020.01015.86
7.0.190.0000.01215.34
7.0.180.0070.00715.53
7.0.170.0040.01115.43
7.0.160.0040.00815.45
7.0.150.0030.00915.60
7.0.140.0020.04218.79
7.0.130.0070.00715.53
7.0.120.0050.00515.51
7.0.110.0030.01315.25
7.0.100.0040.00715.49
7.0.90.0110.00415.57
7.0.80.0000.00815.38
7.0.70.0030.00715.58
7.0.60.0050.03817.74
7.0.50.0050.02816.69
7.0.40.0040.02516.77
7.0.30.0140.02416.79
7.0.20.0130.02916.79
7.0.10.0110.03016.82
7.0.00.0100.02416.73
5.6.400.0000.01014.16
5.6.390.0070.00714.15
5.6.380.0040.01114.56
5.6.370.0060.00314.49
5.6.360.0080.00314.23
5.6.350.0040.01113.96
5.6.340.0070.00714.27
5.6.330.0030.01014.31
5.6.320.0030.01414.13
5.6.310.0090.00014.34
5.6.300.0060.00614.55
5.6.290.0070.00714.47
5.6.280.0000.01814.03
5.6.270.0030.01314.39
5.6.260.0090.00014.21
5.6.250.0030.00914.17
5.6.240.0030.01314.40
5.6.230.0060.00614.14
5.6.220.0080.00414.28
5.6.210.0070.03217.44
5.6.200.0030.04916.41
5.6.190.0030.03017.40
5.6.180.0150.03117.45
5.6.170.0190.03817.50
5.6.160.0060.04117.47
5.6.150.0070.03316.26
5.6.140.0050.03616.13
5.6.130.0070.02716.35
5.6.120.0060.02617.56
5.6.110.0070.04217.60
5.6.100.0120.04517.55
5.6.90.0070.04217.64
5.6.80.0120.03917.33
5.6.70.0030.01014.13
5.6.60.0080.00414.19
5.6.50.0080.00414.18
5.6.40.0030.00614.28
5.6.30.0070.01014.26
5.6.20.0120.00314.58
5.6.10.0060.01014.22
5.6.00.0030.01314.16
5.5.380.0070.01013.92
5.5.370.0040.00814.36
5.5.360.0000.01113.96
5.5.350.0020.04217.26
5.5.340.0050.02916.27
5.5.330.0030.02617.54
5.5.320.0150.02317.27
5.5.310.0140.02317.50
5.5.300.0110.04216.25
5.5.290.0050.04216.18
5.5.280.0070.03217.64
5.5.270.0080.04517.56
5.5.260.0000.04917.50
5.5.250.0140.03517.35
5.5.240.0200.03417.24
5.5.230.0100.00714.29
5.5.220.0060.00614.25
5.5.210.0040.01114.39
5.5.200.0110.00314.34
5.5.190.0070.00713.84
5.5.180.0090.00414.09
5.5.170.0030.00913.94
5.5.160.0080.00814.04
5.5.150.0120.00314.43
5.5.140.0060.01214.51
5.5.130.0070.01114.13
5.5.120.0060.00814.17
5.5.110.0060.00613.93
5.5.100.0070.00714.43
5.5.90.0070.00714.49
5.5.80.0040.00813.76
5.5.70.0060.00614.38
5.5.60.0040.00714.14
5.5.50.0060.00614.41
5.5.40.0000.01414.39
5.5.30.0100.00714.30
5.5.20.0060.00913.84
5.5.10.0080.00314.26
5.5.00.0000.01514.28
5.4.450.0070.02815.73
5.4.440.0100.02915.79
5.4.430.0280.02515.75
5.4.420.0130.02215.62
5.4.410.0150.02515.66
5.4.400.0180.02215.57
5.4.390.0330.02315.40
5.4.380.0130.03215.35
5.4.370.0230.02715.36
5.4.360.0150.03215.22
5.4.350.0210.03015.36
5.4.340.0220.03015.26
5.4.330.0140.00011.94
5.4.320.0020.02412.22
5.4.310.0060.02312.22
5.4.300.0070.02212.22
5.4.290.0040.02412.22
5.4.280.0070.02112.16
5.4.270.0060.01912.16
5.4.260.0050.02212.17
5.4.250.0050.02112.17
5.4.240.0060.01912.17
5.4.230.0060.02012.16
5.4.220.0030.02112.16
5.4.210.0060.01812.16
5.4.200.0050.02312.16
5.4.190.0080.02212.16
5.4.180.0030.02812.16
5.4.170.0040.02212.17
5.4.160.0050.02112.16
5.4.150.0060.02312.16
5.4.140.0050.02412.00
5.4.130.0080.01912.00
5.4.120.0070.02011.97
5.4.110.0100.01711.98
5.4.100.0050.02311.97
5.4.90.0070.01911.98
5.4.80.0040.02211.97
5.4.70.0050.01911.97
5.4.60.0050.02211.97
5.4.50.0040.02511.97
5.4.40.0040.02211.97
5.4.30.0050.02011.97
5.4.20.0060.02211.96
5.4.10.0040.02011.97
5.4.00.0090.02611.71
5.3.290.0060.04112.80
5.3.280.0060.03712.71
5.3.270.0050.03912.72
5.3.260.0070.03812.71
5.3.250.0030.03912.71
5.3.240.0050.03712.72
5.3.230.0050.04012.70
5.3.220.0060.03712.68
5.3.210.0060.03812.68
5.3.200.0070.03612.68
5.3.190.0040.04012.68
5.3.180.0040.03812.67
5.3.170.0060.03712.67
5.3.160.0040.03812.67
5.3.150.0050.03712.68
5.3.140.0030.03812.66
5.3.130.0100.03412.66
5.3.120.0070.03812.66
5.3.110.0070.03812.66
5.3.100.0060.03812.12
5.3.90.0060.03612.10
5.3.80.0030.03912.09
5.3.70.0090.03312.09
5.3.60.0090.03512.08
5.3.50.0070.03512.02
5.3.40.0050.03812.02
5.3.30.0050.04011.98
5.3.20.0070.03411.77
5.3.10.0030.03711.73
5.3.00.0060.04011.71
5.2.170.0030.0319.22
5.2.160.0030.0309.21
5.2.150.0050.0379.22
5.2.140.0050.0409.21
5.2.130.0070.0269.17
5.2.120.0030.0309.18
5.2.110.0030.0379.18
5.2.100.0060.0329.18
5.2.90.0040.0419.18
5.2.80.0080.0409.18
5.2.70.0070.0299.18
5.2.60.0070.0299.12
5.2.50.0060.0289.10
5.2.40.0030.0309.07
5.2.30.0040.0319.05
5.2.20.0060.0409.04
5.2.10.0060.0398.95
5.2.00.0080.0308.81
5.1.60.0030.0258.09
5.1.50.0030.0268.08
5.1.40.0050.0258.06
5.1.30.0060.0238.42
5.1.20.0040.0268.44
5.1.10.0080.0218.16
5.1.00.0030.0268.16
5.0.50.0050.0196.64
5.0.40.0020.0216.50
5.0.30.0080.0366.31
5.0.20.0070.0236.28
5.0.10.0040.0256.25
5.0.00.0040.0316.25
4.4.90.0030.0154.78
4.4.80.0020.0154.75
4.4.70.0020.0164.75
4.4.60.0030.0164.76
4.4.50.0020.0164.77
4.4.40.0050.0234.70
4.4.30.0010.0174.76
4.4.20.0050.0224.84
4.4.10.0020.0164.85
4.4.00.0020.0274.76
4.3.110.0010.0174.67
4.3.100.0020.0164.66
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0060.0184.63
4.3.60.0040.0134.63
4.3.50.0050.0144.62
4.3.40.0010.0264.54
4.3.30.0050.0143.30
4.3.20.0040.0213.28
4.3.10.0010.0233.23
4.3.00.0070.01015.62

preferences:
42.37 ms | 401 KiB | 5 Q