3v4l.org

run code in 500+ 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.5.90.0120.00716.90
8.5.80.0110.00616.71
8.5.70.0110.00718.45
8.5.60.0100.00916.61
8.5.50.0100.00716.75
8.5.30.0090.00818.08
8.5.20.0120.00820.05
8.5.10.0100.01316.73
8.5.00.0150.00719.67
8.4.240.0050.00519.44
8.4.230.0050.00519.25
8.4.220.0110.00425.70
8.4.210.0120.00819.47
8.4.180.0130.01019.61
8.4.170.0120.00923.75
8.4.160.0050.00525.67
8.4.150.0070.00516.80
8.4.140.0130.01117.58
8.4.130.0030.00622.32
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.330.0130.00618.51
8.3.320.0090.01018.39
8.3.310.0100.00818.43
8.3.300.0090.01120.75
8.3.290.0100.00720.79
8.3.280.0100.01018.41
8.3.270.0080.01216.43
8.3.260.0110.00916.56
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.320.0050.00518.17
8.2.310.0100.00818.06
8.2.300.0110.00918.57
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
8.1.340.0070.01221.60

preferences:
61.89 ms | 904 KiB | 5 Q