3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $array = [ '2' => 'yay, integer inferring', '3' => 'wish you were a string', 'actualstring' => 'yes I am!', ]; foreach ($array as $key => $value) { var_dump($key); var_dump($value); echo "---\n"; }

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.0120.00520.53
8.4.110.0080.00522.54
8.4.100.0110.01017.47
8.4.90.0150.00517.61
8.4.80.0320.00918.90
8.4.70.0410.00917.75
8.4.60.0470.00717.50
8.4.50.0340.00817.58
8.4.40.0240.00817.22
8.4.30.0410.01017.23
8.4.20.0420.00817.70
8.4.10.0350.00517.71
8.3.250.0130.00619.10
8.3.240.0110.00817.14
8.3.230.0100.00916.64
8.3.220.0330.00818.98
8.3.210.0300.01016.89
8.3.200.0170.00616.89
8.3.190.0170.00416.89
8.3.180.0180.00316.89
8.3.170.0350.00516.89
8.3.160.0400.00916.89
8.3.150.0300.00716.89
8.3.140.0240.00216.89
8.3.130.0170.00316.89
8.3.120.0310.01016.89
8.3.110.0380.00716.89
8.3.100.0230.00916.89
8.3.90.0210.00316.89
8.3.80.0180.00516.89
8.3.70.0300.00616.89
8.3.60.0210.00316.89
8.3.50.0230.00516.89
8.3.40.0200.00417.39
8.3.30.0160.00417.37
8.3.20.0360.00517.27
8.3.10.0300.00817.50
8.3.00.0150.00519.28
8.2.290.0100.00918.71
8.2.280.0290.01016.89
8.2.270.0310.01116.89
8.2.260.0320.01016.89
8.2.250.0320.00716.89
8.2.240.0390.00716.89
8.2.230.0340.00916.89
8.2.220.0230.00316.89
8.2.210.0190.00916.89
8.2.200.0230.00516.89
8.2.190.0310.00716.89
8.2.180.0250.00616.89
8.2.170.0350.01017.57
8.2.160.0290.00617.69
8.2.150.0280.00617.45
8.2.140.0380.00517.48
8.2.130.0350.00817.63
8.2.120.0310.01017.26
8.2.110.0380.00817.70
8.2.100.0330.00717.42
8.2.90.0360.00717.69
8.2.80.0350.00817.45
8.2.70.0370.00617.36
8.2.60.0350.00817.47
8.2.50.0360.00717.59
8.2.40.0330.00917.46
8.2.30.0320.00817.23
8.2.20.0410.00717.38
8.2.10.0350.00517.50
8.2.00.0370.00617.49

preferences:
27.94 ms | 403 KiB | 5 Q