3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['foo' => 'a', 'bar' => 1], ['foo' => 'b', 'bar' => 2], ]; foreach ($array as $x => ['new' => &$x]); var_export($array);

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.4.120.0150.00320.63
8.4.110.0150.00618.93
8.4.100.0130.00817.88
8.4.90.0140.00620.54
8.4.80.0050.00318.95
8.4.70.0120.00918.82
8.4.60.0070.00920.34
8.4.50.0240.00918.99
8.4.40.0100.01117.40
8.4.30.0140.00618.21
8.4.20.0140.00818.14
8.4.10.0120.00818.32
8.3.250.0140.00518.63
8.3.240.0110.00817.27
8.3.230.0090.01116.51
8.3.220.0060.00219.10
8.3.210.0100.00816.75
8.3.200.0050.00316.66
8.3.190.0090.00517.02
8.3.180.0150.00316.21
8.3.170.0150.00318.46
8.3.160.0090.00616.36
8.3.150.0100.00617.45
8.3.140.0170.00216.40
8.3.130.0060.00517.51
8.3.120.0080.00518.69
8.3.110.0080.00417.59
8.3.100.0060.00516.37
8.3.90.0080.00521.66
8.3.80.0070.00517.34
8.3.70.0120.00616.32
8.3.60.0110.00416.56
8.3.50.0080.01116.74
8.3.40.0120.00418.76
8.3.30.0110.00618.62
8.3.20.0050.00620.55
8.3.10.0110.00720.20
8.3.00.0110.00718.22
8.2.290.0130.00618.63
8.2.280.0100.00416.18
8.2.270.0070.00916.64
8.2.260.0110.00518.32
8.2.250.0110.00716.45
8.2.240.0080.00817.42
8.2.230.0100.00218.45
8.2.220.0110.00620.06
8.2.210.0080.00321.56
8.2.200.0070.00517.57
8.2.190.0100.00617.53
8.2.180.0150.00316.53
8.2.170.0110.00518.17
8.2.160.0080.00920.14
8.2.150.0100.00221.64
8.2.140.0100.00619.41
8.2.130.0070.00919.51
8.2.120.0090.00918.49
8.2.110.0110.00618.63
8.2.100.0100.00518.48
8.2.90.0140.00618.28
8.2.80.0130.00518.26
8.2.70.0080.01018.14
8.2.60.0090.00518.35
8.2.50.0100.00318.27
8.2.40.0080.00618.35
8.2.30.0100.00918.22
8.2.20.0090.00318.20
8.2.10.0120.00618.29
8.2.00.0070.00618.25
8.1.330.0110.00718.11
8.1.320.0110.00515.77
8.1.310.0120.00717.02
8.1.300.0120.00616.73
8.1.290.0090.00323.52
8.1.280.0100.00820.85
8.1.270.0090.00620.44
8.1.260.0090.00320.51
8.1.250.0100.00420.54
8.1.240.0080.00318.17
8.1.230.0110.00418.14
8.1.220.0070.00418.44
8.1.210.0090.00418.11
8.1.200.0080.00318.08
8.1.190.0070.00418.20
8.1.180.0070.00417.97
8.1.170.0080.00617.94
8.1.160.0070.00418.00
8.1.150.0050.00618.11
8.1.140.0090.00417.98
8.1.130.0110.00318.14
8.1.120.0090.00418.09
8.1.110.0090.00218.13
8.1.100.0070.00418.18
8.1.90.0070.00718.14
8.1.80.0080.00418.13
8.1.70.0080.00418.03
8.1.60.0080.00418.11
8.1.50.0090.00218.14
8.1.40.0080.00518.26
8.1.30.0070.00618.28
8.1.20.0070.00418.18
8.1.10.0070.00718.18
8.1.00.0080.00318.12

preferences:
28.71 ms | 403 KiB | 5 Q