3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testing { public $arr = array(); public function &test() { $ob = new StdClass(); $ob->name = 'derp'; $this->arr[] = $ob; return $ob; } } $t = new Testing(); $derp = $t->test(); $derp->name = 'test'; echo $t->arr[0]->name;

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.0130.01016.63
8.3.50.0080.01117.51
8.3.40.0110.00718.79
8.3.30.0100.00318.84
8.3.20.0070.00718.90
8.3.10.0080.00018.87
8.3.00.0030.00619.13
8.2.180.0090.00618.41
8.2.170.0070.00722.96
8.2.160.0110.00418.81
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0030.00521.00
8.2.110.0060.00321.11
8.2.100.0000.01217.78
8.2.90.0030.00517.63
8.2.80.0000.00818.97
8.2.70.0040.00417.75
8.2.60.0040.00417.63
8.2.50.0060.00317.93
8.2.40.0040.00419.35
8.2.30.0060.00317.75
8.2.20.0030.00617.54
8.2.10.0040.00417.84
8.2.00.0090.00017.73
8.1.280.0070.00725.92
8.1.270.0020.00523.99
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0070.00419.34
8.1.230.0070.00322.63
8.1.220.0040.00418.78
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.34
8.1.180.0050.00318.10
8.1.170.0050.00217.62
8.1.160.0050.00219.05
8.1.150.0000.00818.65
8.1.140.0070.00017.30
8.1.130.0040.00417.32
8.1.120.0040.00417.35
8.1.110.0040.00417.31
8.1.100.0000.00717.42
8.1.90.0070.00017.43
8.1.80.0030.00317.35
8.1.70.0030.00317.36
8.1.60.0000.00717.49
8.1.50.0000.00817.54
8.1.40.0000.00817.41
8.1.30.0000.00817.61
8.1.20.0000.00817.52
8.1.10.0070.00017.64
8.1.00.0000.00717.52
8.0.300.0060.00318.77
8.0.290.0000.00716.62
8.0.280.0000.00918.55
8.0.270.0030.00317.25
8.0.260.0030.00316.89
8.0.250.0040.00416.84
8.0.240.0040.00316.97
8.0.230.0000.00716.84
8.0.220.0030.00316.83
8.0.210.0070.00016.86
8.0.200.0030.00316.79
8.0.190.0080.00016.80
8.0.180.0060.00316.71
8.0.170.0000.00716.86
8.0.160.0080.00016.82
8.0.150.0000.00816.73
8.0.140.0000.00716.75
8.0.130.0000.00613.34
8.0.120.0090.00016.81
8.0.110.0000.00816.77
8.0.100.0070.00016.93
8.0.90.0020.00516.70
8.0.80.0110.00316.77
8.0.70.0000.00716.77
8.0.60.0050.00316.66
8.0.50.0000.00816.84
8.0.30.0030.01316.86
8.0.20.0110.00817.34
8.0.10.0000.00716.89
8.0.00.0080.01016.81
7.4.330.0020.00213.03
7.4.320.0040.00416.48
7.4.300.0000.00816.51
7.4.290.0030.00616.51
7.4.280.0070.00016.49
7.4.270.0070.00016.60
7.4.260.0060.00013.16
7.4.250.0090.00016.61
7.4.240.0030.00316.59
7.4.230.0030.00316.50
7.4.220.0130.01016.64
7.4.210.0000.01616.63
7.4.200.0040.00416.34
7.4.190.0000.00716.64
7.4.160.0090.00616.61
7.4.150.0000.01916.27
7.4.140.0100.00717.86
7.4.130.0100.01016.47
7.4.120.0080.00816.49
7.4.110.0110.00816.59
7.4.100.0000.01616.39
7.4.90.0130.00716.74
7.4.80.0070.01016.49
7.4.70.0120.00416.41
7.4.60.0130.00716.52
7.4.50.0050.00016.32
7.4.40.0090.00616.51
7.4.30.0090.00916.52
7.4.00.0000.01514.74
7.3.330.0000.00613.38
7.3.320.0000.00513.29
7.3.310.0040.00416.25
7.3.300.0070.00016.37
7.3.290.0120.00816.39
7.3.280.0040.01116.38
7.3.270.0090.00916.52
7.3.260.0070.01016.38
7.3.240.0120.00616.54
7.3.230.0150.00316.36
7.3.210.0030.01316.57
7.3.200.0120.00919.39
7.3.190.0060.01216.26
7.3.180.0090.01216.38
7.3.170.0120.00916.51
7.3.160.0120.00316.41
7.3.120.0040.00714.59
7.2.330.0170.00716.50
7.2.320.0140.00316.77
7.2.310.0090.01216.87
7.2.300.0100.00716.34
7.2.290.0130.00316.69
7.2.00.0000.01219.57
7.1.70.0000.00717.03
7.1.60.0070.01719.25
7.1.50.0230.01334.92
7.1.00.0000.03722.46
7.0.200.0000.00716.90
7.0.140.0130.06722.00
7.0.120.0130.06022.18
7.0.60.0070.06320.01
7.0.50.0030.09017.88
7.0.40.0070.08320.39
7.0.30.0270.04020.11
7.0.20.0300.04020.07
7.0.10.0300.07320.08
7.0.00.0000.05720.16
5.6.280.0100.06720.93
5.6.210.0130.05320.53
5.6.200.0030.04318.15
5.6.190.0070.08720.42
5.6.180.0200.06720.49
5.6.170.0300.07720.54
5.6.160.0030.09020.45
5.6.150.0070.07318.28
5.6.140.0030.08018.20
5.6.130.0100.07718.17
5.6.120.0000.05020.97
5.6.110.0230.06721.00
5.6.100.0070.05721.11
5.6.90.0070.06020.96
5.6.80.0130.07320.52
5.6.70.4430.03720.40
5.5.350.0230.04020.39
5.5.340.0070.03718.02
5.5.330.0030.05320.29
5.5.320.0330.05720.37
5.5.310.0300.06720.33
5.5.300.0100.06017.97
5.5.290.0000.04318.07
5.5.280.0200.07020.77
5.5.270.0070.08320.68
5.5.260.0030.04020.77
5.5.250.0100.05720.47
5.5.240.0070.07320.37
5.4.450.0470.05019.58
5.4.440.3770.04319.16
5.4.430.0230.04019.36
5.4.420.0070.05719.39
5.4.410.0300.05719.40
5.4.400.0070.05719.23
5.4.390.0070.05319.06
5.4.380.0330.05018.79
5.4.370.0000.04718.57
5.4.360.0000.05018.77
5.4.350.0050.03912.02
5.4.340.0050.03712.02
5.4.320.0050.03812.50
5.4.310.0080.03912.49
5.4.300.0070.04312.50
5.4.290.0070.04512.50
5.4.280.0080.04312.39
5.4.270.0080.04412.39
5.4.260.0090.05212.39
5.4.250.0080.05512.39
5.4.240.0070.05412.40
5.4.230.0070.05412.39
5.4.220.0080.05212.39
5.4.210.0070.04812.39
5.4.200.0070.05012.39
5.4.190.0070.04712.38
5.4.180.0080.04712.38
5.4.170.0080.04712.39
5.4.160.0070.04412.39
5.4.150.0080.04312.39
5.4.140.0080.04812.07
5.4.130.0120.04812.06
5.4.120.0080.04112.02
5.4.110.0080.04812.01
5.4.100.0060.04112.01
5.4.90.0060.04412.01
5.4.80.0050.04612.01
5.4.70.0060.03712.01
5.4.60.0070.04012.01
5.4.50.0070.04112.01
5.4.40.0080.04712.00
5.4.30.0060.04111.99
5.4.20.0080.03911.99
5.4.10.0060.03812.00
5.4.00.0070.03711.48
5.3.290.0080.04712.80
5.3.280.0060.03912.71
5.3.270.0090.04012.72
5.3.260.0100.05912.72
5.3.250.0080.04012.72
5.3.240.0070.04412.72
5.3.230.0080.04412.71
5.3.220.0080.04412.68
5.3.210.0070.04612.68
5.3.200.0080.03912.68
5.3.190.0080.03812.68
5.3.180.0090.03812.67
5.3.170.0080.04012.67
5.3.160.0120.05112.67
5.3.150.0090.05212.67
5.3.140.0080.05712.66
5.3.130.0080.05112.66
5.3.120.0080.04912.66
5.3.110.0060.05512.66
5.3.100.0090.04212.12
5.3.90.0090.04212.10
5.3.80.0070.04112.09
5.3.70.0060.03912.09
5.3.60.0080.04512.08
5.3.50.0090.04312.02
5.3.40.0070.04312.02
5.3.30.0060.04311.98
5.3.20.0070.03911.76

preferences:
43.62 ms | 401 KiB | 5 Q