3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExpClass { public $index; public function __construct() { $this->index = 'super'; } public function addNode() { $index = &$this->index; $index .= 'toto'; echo $index; echo '<hr>'; echo $this->index; } } $test = new ExpClass(); $test->addNode();

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.0110.00416.75
8.3.50.0100.00918.10
8.3.40.0090.00618.79
8.3.30.0070.00718.75
8.3.20.0000.00818.60
8.3.10.0030.00620.42
8.3.00.0040.00419.18
8.2.180.0070.00716.63
8.2.170.0070.00722.96
8.2.160.0070.00720.67
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.89
8.2.110.0030.00620.53
8.2.100.0070.00317.84
8.2.90.0000.00819.35
8.2.80.0040.00419.28
8.2.70.0030.00917.34
8.2.60.0050.00318.16
8.2.50.0080.00018.07
8.2.40.0000.00718.16
8.2.30.0080.00018.00
8.2.20.0040.00817.69
8.2.10.0070.00017.64
8.2.00.0000.00717.68
8.1.280.0090.00925.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00723.67
8.1.230.0060.00620.96
8.1.220.0000.00918.77
8.1.210.0000.00818.96
8.1.200.0030.00717.24
8.1.190.0000.00717.40
8.1.180.0080.00018.10
8.1.170.0080.00018.77
8.1.160.0000.01118.74
8.1.150.0050.00318.64
8.1.140.0040.00417.31
8.1.130.0030.00517.86
8.1.120.0000.00717.30
8.1.110.0030.00517.40
8.1.100.0000.00717.38
8.1.90.0040.00417.41
8.1.80.0080.00017.39
8.1.70.0080.00017.37
8.1.60.0040.00417.60
8.1.50.0040.00417.46
8.1.40.0040.00417.56
8.1.30.0030.00617.67
8.1.20.0050.00217.62
8.1.10.0090.00017.51
8.1.00.0040.00417.59
8.0.300.0000.00920.00
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0040.00417.25
8.0.260.0000.00816.75
8.0.250.0000.00717.06
8.0.240.0050.00316.96
8.0.230.0000.00616.77
8.0.220.0000.00716.81
8.0.210.0030.00516.84
8.0.200.0030.00316.95
8.0.190.0020.00516.92
8.0.180.0080.00016.82
8.0.170.0060.00316.73
8.0.160.0040.00416.90
8.0.150.0000.01016.85
8.0.140.0070.00316.86
8.0.130.0000.00513.27
8.0.120.0070.00016.80
8.0.110.0030.00316.90
8.0.100.0040.00416.70
8.0.90.0030.00316.75
8.0.80.0050.01016.78
8.0.70.0030.00516.89
8.0.60.0030.00316.68
8.0.50.0000.00816.84
8.0.30.0120.00917.09
8.0.20.0120.00817.04
8.0.10.0070.00016.82
8.0.00.0100.01016.63
7.4.330.0000.00512.87
7.4.320.0060.00016.55
7.4.300.0030.00316.52
7.4.290.0030.00316.61
7.4.280.0110.00016.59
7.4.270.0040.00416.40
7.4.260.0000.00613.29
7.4.250.0080.00016.63
7.4.240.0040.00416.49
7.4.230.0000.00716.35
7.4.220.0090.00916.67
7.4.210.0030.01216.63
7.4.200.0030.00316.50
7.4.190.0000.00716.67
7.4.160.0060.00916.35
7.4.150.0060.01116.56
7.4.140.0100.01016.53
7.4.130.0120.00616.46
7.4.120.0130.00316.49
7.4.110.0060.01216.56
7.4.100.0130.00316.47
7.4.90.0090.00916.42
7.4.80.0130.00316.64
7.4.70.0080.01116.47
7.4.60.0060.01016.44
7.4.50.0000.00816.52
7.4.40.0040.01216.14
7.4.30.0100.00716.52
7.4.00.0070.01015.04
7.3.330.0060.00013.31
7.3.320.0030.00313.15
7.3.310.0040.00416.34
7.3.300.0030.00316.31
7.3.290.0040.01016.31
7.3.280.0100.00916.24
7.3.270.0110.01116.40
7.3.260.0130.01016.52
7.3.250.0070.01416.59
7.3.240.0080.00816.37
7.3.230.0000.01716.41
7.3.210.0100.00616.24
7.3.200.0070.01016.30
7.3.190.0120.00916.33
7.3.180.0060.00916.27
7.3.170.0000.01616.38
7.3.160.0040.01416.34
7.3.120.0070.01114.46
7.3.10.0030.01016.39
7.3.00.0080.00416.71
7.2.330.0120.00616.82
7.2.320.0060.01016.74
7.2.310.0110.01116.50
7.2.300.0100.01016.40
7.2.290.0120.00916.50
7.2.130.0000.01316.91
7.2.120.0070.00417.11
7.2.110.0000.01116.99
7.2.100.0040.01116.91
7.2.90.0000.01416.96
7.2.80.0080.00816.57
7.2.70.0080.00417.14
7.2.60.0060.00916.87
7.2.50.0070.00417.08
7.2.40.0040.01116.63
7.2.30.0100.00617.04
7.2.20.0040.00716.71
7.2.10.0030.01016.62
7.2.00.0050.00316.84
7.1.250.0060.00615.69
7.1.200.0130.01015.46
7.1.70.0000.01217.11
7.1.60.0000.01719.30
7.1.50.0120.00617.05
7.1.00.0070.04322.45
7.0.200.0030.00316.92
7.0.140.0030.07722.07
7.0.120.0030.06722.20
7.0.60.0130.06320.07
7.0.50.0030.04017.86
7.0.40.0030.04320.04
7.0.30.0270.08020.15
7.0.20.0270.07720.09
7.0.10.0000.04720.16
7.0.00.0030.04720.25
5.6.280.0170.06020.92
5.6.210.0000.09020.63
5.6.200.0100.07718.17
5.6.190.0070.08720.63
5.6.180.4100.04320.60
5.6.170.0200.04320.44
5.6.160.0030.04320.52
5.6.150.0100.04718.27
5.6.140.0100.07318.17
5.6.130.0070.04718.18
5.6.120.0130.05721.14
5.6.110.0130.08021.01
5.6.100.0030.08720.99
5.6.90.0030.08321.04
5.6.80.0170.07720.54
5.5.350.0070.07320.38
5.5.340.0000.07318.10
5.5.330.0100.07720.44
5.5.320.0370.05320.35
5.5.310.0330.03720.26
5.5.300.0130.04318.07
5.5.290.0200.06717.93
5.5.280.0000.04320.81
5.5.270.0130.08020.87
5.5.260.0070.05020.80
5.5.250.0100.07320.66
5.5.240.0200.07320.27
5.4.450.0030.04019.43
5.4.440.0130.03719.24
5.4.430.0030.04719.24
5.4.420.0100.07319.46
5.4.410.0030.07019.18
5.4.400.0000.08019.15
5.4.390.0170.06719.07
5.4.380.0100.04719.04
5.4.370.0100.04318.87
5.4.360.0200.06318.85
5.4.350.0170.06318.92
5.4.340.0230.06318.85
5.4.320.0070.08019.15
5.4.310.0100.06719.24
5.4.300.0030.04019.14
5.4.290.0070.05018.85
5.4.280.0070.03319.20
5.4.270.0000.04018.85
5.4.260.0000.04019.23
5.4.250.0130.02719.15
5.4.240.0000.04019.15
5.4.230.0070.03319.14
5.4.220.0030.03719.11
5.4.210.0070.03319.23
5.4.200.0030.03718.97
5.4.190.0030.03718.84
5.4.180.0100.03018.84
5.4.170.0070.03318.95
5.4.160.0030.03718.83
5.4.150.0000.04018.89
5.4.140.0070.03316.33
5.4.130.0030.03316.23
5.4.120.0030.04016.37
5.4.110.0000.04016.29
5.4.100.0030.04316.46
5.4.90.0070.03016.40
5.4.80.0030.03316.39
5.4.70.0070.03316.37
5.4.60.0000.03716.47
5.4.50.0030.03316.44
5.4.40.0000.03716.51
5.4.30.0000.03716.40
5.4.20.0070.03016.38
5.4.10.0030.04316.31
5.4.00.0030.05015.79
5.3.290.0030.08714.70
5.3.280.0030.03714.62
5.3.270.0070.03314.62
5.3.260.0000.04014.66
5.3.250.0070.03314.63
5.3.240.0030.04014.49
5.3.230.0000.04014.60
5.3.220.0070.03714.63
5.3.210.0100.03014.57
5.3.200.0070.03714.72
5.3.190.0100.03314.45
5.3.180.0070.03014.56
5.3.170.0030.03714.63
5.3.160.0030.03314.59
5.3.150.0070.03314.45
5.3.140.0030.04014.59
5.3.130.0130.03014.56
5.3.120.0030.03714.55
5.3.110.0030.03714.56
5.3.100.0030.03713.93
5.3.90.0030.05314.09
5.3.80.0030.04714.05
5.3.70.0030.04014.08
5.3.60.0030.03713.95
5.3.50.0070.05713.95
5.3.40.0070.07313.95
5.3.30.0170.04014.06
5.3.20.0070.04313.66
5.3.10.0030.03713.69
5.3.00.0070.05713.66
5.2.170.0100.04011.12
5.2.160.0100.04711.04
5.2.150.0100.05711.16
5.2.140.0000.07011.12
5.2.130.0030.06311.07
5.2.120.0030.04011.11
5.2.110.0100.02311.16
5.2.100.0070.05711.16
5.2.90.0100.06011.14
5.2.80.0070.06011.25
5.2.70.0030.04011.15
5.2.60.0070.05711.06
5.2.50.0030.04010.95
5.2.40.0030.06711.14
5.2.30.0100.04010.97
5.2.20.0030.05310.97
5.2.10.0130.02710.88
5.2.00.0000.03010.67
5.1.60.0030.02710.00
5.1.50.0070.03710.04
5.1.40.0030.03010.00
5.1.30.0070.05710.39
5.1.20.0070.05010.25
5.1.10.0070.05010.12
5.1.00.0030.0509.98
5.0.50.0000.0408.57
5.0.40.0070.0338.57
5.0.30.0070.0608.23
5.0.20.0070.0378.11
5.0.10.0000.0208.16
5.0.00.0030.0578.30
4.4.90.0000.0337.71
4.4.80.0070.0237.71
4.4.70.0000.0307.71
4.4.60.0000.0237.71
4.4.50.0030.0207.71
4.4.40.0030.0307.71
4.4.30.0030.0207.71
4.4.20.0030.0307.71
4.4.10.0000.0377.71
4.4.00.0070.0537.71
4.3.110.0030.0237.71
4.3.100.0030.0237.71
4.3.90.0070.0337.71
4.3.80.0000.0307.71
4.3.70.0000.0237.71
4.3.60.0000.0237.71
4.3.50.0030.0277.71
4.3.40.0000.0377.71
4.3.30.0000.0307.71
4.3.20.0000.0377.71
4.3.10.0000.0337.71
4.3.00.0000.0377.71

preferences:
41.17 ms | 400 KiB | 5 Q