3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $arr = ['one' => 'hello', 'two' => 'world' ]; [$hello, $world] = $arr; echo "$hello $world\n"; echo "2nd try:\n"; ['two' => $hello, 'one' => $world] = $arr; echo "$hello $world\n"; // Hi!

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.0070.00718.28
8.3.50.0180.00316.57
8.3.40.0100.00320.39
8.3.30.0040.01118.73
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.180.0120.00625.92
8.2.170.0140.00719.10
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00619.27
8.2.100.0000.01117.97
8.2.90.0040.00419.25
8.2.80.0050.00317.97
8.2.70.0070.00317.75
8.2.60.0030.00618.05
8.2.50.0000.00818.10
8.2.40.0030.00519.88
8.2.30.0070.00018.00
8.2.20.0000.00719.29
8.2.10.0060.00617.75
8.2.00.0190.00017.79
8.1.280.0130.00625.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00817.48
8.1.230.0070.00417.82
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.09
8.1.180.0000.00818.10
8.1.170.0000.00818.90
8.1.160.0000.00718.81
8.1.150.0080.00018.56
8.1.140.0140.00517.25
8.1.130.0140.00617.36
8.1.120.0100.00917.34
8.1.110.0140.00017.39
8.1.100.0080.00317.29
8.1.90.0100.00317.41
8.1.80.0000.01117.49
8.1.70.0040.00917.37
8.1.60.0080.00417.56
8.1.50.0130.00017.38
8.1.40.0150.00017.53
8.1.30.0050.01017.53
8.1.20.0180.00417.59
8.1.10.0090.00917.52
8.1.00.0090.00917.62
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0000.00718.43
8.0.270.0090.00916.88
8.0.260.0060.00916.87
8.0.250.0020.01116.83
8.0.240.0130.00016.87
8.0.230.0050.00516.72
8.0.220.0140.00016.87
8.0.210.0060.00716.80
8.0.200.0050.00816.79
8.0.190.0120.00016.95
8.0.180.0100.00716.87
8.0.170.0160.00316.80
8.0.160.0140.00716.76
8.0.150.0150.00016.79
8.0.140.0070.00716.74
8.0.130.0060.00816.83
8.0.120.0120.00316.85
8.0.110.0130.00316.70
8.0.100.0090.00916.86
8.0.90.0150.00316.86
8.0.80.0090.00616.72
8.0.70.0070.00716.74
8.0.60.0080.00816.91
8.0.50.0140.00316.84
8.0.30.0180.00016.88
8.0.20.0100.00816.84
8.0.10.0080.00316.86

preferences:
46.9 ms | 401 KiB | 5 Q