3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $baz = array('bazz' => null); public function bar() { $key = 'baz'; $this->$key['bazz'] = 123; var_dump($this->$key); } } // $a = (); var_dump([new Foo() => '123']);

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.0100.01616.50
8.3.50.0140.00716.48
8.3.40.0040.01119.02
8.3.30.0120.00318.69
8.3.20.0090.00020.38
8.3.10.0030.00621.73
8.3.00.0080.00019.68
8.2.180.0110.00418.29
8.2.170.0120.00622.96
8.2.160.0000.01419.08
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0020.00519.21
8.2.120.0040.00426.35
8.2.110.0060.00320.49
8.2.100.0080.00417.84
8.2.90.0030.00619.21
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0050.00317.80
8.2.50.0070.00318.10
8.2.40.0040.00420.31
8.2.30.0060.00319.25
8.2.20.0050.00218.06
8.2.10.0030.00517.94
8.2.00.0000.00817.98
8.1.280.0150.00425.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00921.95
8.1.230.0060.00919.10
8.1.220.0050.00517.74
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00517.36
8.1.180.0060.00318.10
8.1.170.0030.00718.48
8.1.160.0000.00718.89
8.1.150.0080.00318.73
8.1.140.0030.00519.48
8.1.130.0000.00718.73
8.1.120.0000.00817.41
8.1.110.0030.00517.36
8.1.100.0070.00017.45
8.1.90.0040.00417.30
8.1.80.0040.00417.41
8.1.70.0030.00317.34
8.1.60.0080.00017.52
8.1.50.0000.00817.50
8.1.40.0000.00817.37
8.1.30.0040.00417.66
8.1.20.0040.00417.63
8.1.10.0000.00717.47
8.1.00.0030.00517.30
8.0.300.0060.00320.00
8.0.290.0040.00416.63
8.0.280.0000.00718.33
8.0.270.0000.00717.18
8.0.260.0080.00016.93
8.0.250.0030.00317.00
8.0.240.0080.00016.93
8.0.230.0030.00316.97
8.0.220.0030.00516.93
8.0.210.0000.00816.88
8.0.200.0070.00016.88
8.0.190.0030.00516.80
8.0.180.0050.00316.91
8.0.170.0030.00316.82
8.0.160.0020.00516.82
8.0.150.0000.00716.82
8.0.140.0000.00716.82
8.0.130.0000.00513.32
8.0.120.0070.00016.89
8.0.110.0040.00416.79
8.0.100.0040.00416.83
8.0.90.0080.00016.91
8.0.80.0060.01316.87
8.0.70.0000.00816.76
8.0.60.0040.00416.96
8.0.50.0000.00716.88
8.0.30.0110.00617.01
8.0.20.0070.01317.40
8.0.10.0050.00216.91
8.0.00.0030.01616.84
7.4.330.0050.00015.55
7.4.320.0040.00416.53
7.4.300.0000.00616.49
7.4.290.0030.00316.40
7.4.280.0040.00416.29
7.4.270.0000.00816.53
7.4.260.0000.00716.36
7.4.250.0040.00416.47
7.4.240.0040.00416.43
7.4.230.0070.00016.46
7.4.220.0120.00616.50
7.4.210.0070.01316.41
7.4.200.0020.00516.27
7.4.160.0110.00716.30
7.4.150.0140.00317.40
7.4.140.0150.00317.86
7.4.130.0170.00316.39
7.4.120.0110.00816.52
7.4.110.0090.00916.38
7.4.100.0140.01416.46
7.4.90.0160.00616.36
7.4.80.0060.01119.39
7.4.70.0150.00016.52
7.4.60.0030.01316.43
7.4.50.0060.01216.23
7.4.40.0110.00616.41
7.4.30.0030.01516.34
7.4.00.0030.01214.88
7.3.330.0020.00213.30
7.3.320.0030.00313.25
7.3.310.0070.00016.40
7.3.300.0000.00716.22
7.3.290.0070.00916.34
7.3.280.0090.00816.31
7.3.270.0070.01117.40
7.3.260.0100.00816.34
7.3.250.0130.00416.42
7.3.240.0100.00816.42
7.3.230.0090.00916.43
7.3.210.0070.01016.53
7.3.200.0100.00616.26
7.3.190.0060.01016.45
7.3.180.0090.00916.51
7.3.170.0080.01216.42
7.3.160.0130.00316.33
7.3.10.0030.00716.65
7.3.00.0090.00316.58
7.2.330.0100.00616.59
7.2.320.0060.01216.43
7.2.310.0090.00916.55
7.2.300.0070.01116.61
7.2.290.0090.00916.43
7.2.130.0030.00616.79
7.2.120.0000.01616.58
7.2.110.0040.00816.52
7.2.100.0090.00016.50
7.2.90.0060.00616.77
7.2.80.0070.00716.76
7.2.70.0070.00416.76
7.2.60.0070.00316.64
7.2.50.0060.00916.63
7.2.40.0040.00716.90
7.2.30.0050.00816.84
7.2.20.0040.00816.55
7.2.10.0100.00016.80
7.2.00.0050.00618.07
7.1.250.0040.00815.63
7.1.200.0030.00915.81
7.1.100.0000.01118.16
7.1.70.0060.00817.01
7.1.60.0190.00634.93
7.1.50.0130.01334.76
7.1.40.0160.01934.26
7.1.30.0210.01134.39
7.1.20.0160.01034.36
7.1.10.0040.00916.61
7.1.00.0000.01416.35
7.0.200.0000.01216.75
7.0.190.0000.01216.37
7.0.180.0070.00716.16
7.0.170.0030.01216.16
7.0.160.0000.01316.02
7.0.150.0080.00815.99
7.0.140.0000.01316.10
7.0.130.0030.01316.42
7.0.120.0000.01616.36
7.0.110.0120.00316.32
7.0.100.0050.00816.36
7.0.90.0000.01416.09
7.0.80.0030.01016.14
7.0.70.0060.00616.20
7.0.60.0070.00716.06
7.0.50.0100.00716.29
7.0.40.0000.01916.45
7.0.30.0000.01416.43
7.0.20.0000.01716.37
7.0.10.0040.01316.39
7.0.00.0040.01416.33

preferences:
44.63 ms | 400 KiB | 5 Q