3v4l.org

run code in 300+ PHP versions simultaneously
<?php function set_iter() { yield null => 1; yield null => 2; yield null => 3; } foreach (set_iter() as $key => $value) { var_dump($key, $value); }

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.140.0150.00617.52
8.4.130.0120.00917.89
8.4.120.0100.00720.51
8.4.110.0130.00718.64
8.4.100.0120.00517.70
8.4.90.0150.00520.46
8.4.80.0070.00118.54
8.4.70.0130.00817.76
8.4.60.0150.00724.23
8.4.50.0340.01117.45
8.4.40.0380.01117.39
8.4.30.0370.01017.41
8.4.20.0420.00817.28
8.4.10.0390.01017.49
8.3.270.0110.00816.73
8.3.260.0070.01316.66
8.3.250.0110.00818.99
8.3.240.0140.00616.31
8.3.230.0110.00916.66
8.3.220.0050.00418.80
8.3.210.0040.00316.52
8.3.200.0070.00216.83
8.3.190.0370.00516.48
8.3.180.0400.00416.43
8.3.170.0370.00816.61
8.3.160.0240.00716.47
8.3.150.0300.00716.41
8.3.140.0390.00816.19
8.3.130.0290.00916.42
8.3.120.0380.00416.28
8.3.110.0280.01116.64
8.3.100.0370.01316.36
8.3.90.0390.00316.37
8.3.80.0360.01116.48
8.3.70.0330.01016.54
8.3.60.0400.00516.46
8.3.50.0380.00916.43
8.3.40.0310.00917.39
8.3.30.0350.00717.30
8.3.20.0400.01417.51
8.3.10.0200.01117.54
8.3.00.0110.00517.34
8.2.290.0080.01120.16
8.2.280.0320.00616.37
8.2.270.0340.00516.44
8.2.260.0320.00716.30
8.2.250.0350.00816.69
8.2.240.0350.00816.29
8.2.230.0330.00816.52
8.2.220.0300.01316.34
8.2.210.0290.00816.25
8.2.200.0310.00516.48
8.2.190.0350.00716.57
8.2.180.0320.00716.29
8.2.170.0360.00817.69
8.2.160.0300.01017.38
8.2.150.0360.00517.70
8.2.140.0330.00817.33
8.2.130.0330.00917.46
8.2.120.0330.00817.39
8.2.110.0350.00617.76
8.2.100.0240.00917.64
8.2.90.0290.00817.70
8.2.80.0300.01017.32
8.2.70.0300.01217.51
8.2.60.0310.00517.43
8.2.50.0350.00617.51
8.2.40.0330.00517.52
8.2.30.0300.00917.45
8.2.20.0330.00617.33
8.2.10.0350.01017.63
8.2.00.0440.00717.52

preferences:
29.04 ms | 403 KiB | 5 Q