3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test() { yield from [1, 2, 3]; yield 4; } var_dump(iterator_to_array(test()));

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.70.0080.00918.35
8.5.60.0040.00316.59
8.5.50.0070.00116.73
8.5.30.0120.00718.11
8.5.20.0110.00620.22
8.5.10.0100.00816.69
8.5.00.0160.01019.71
8.4.220.0120.00919.48
8.4.210.0050.00519.51
8.4.180.0140.00919.62
8.4.170.0140.00723.95
8.4.160.0140.00822.06
8.4.150.0130.00416.68
8.4.140.0190.00917.44
8.4.130.0290.00817.90
8.4.120.0430.00917.64
8.4.110.0350.01217.53
8.4.100.0390.00917.44
8.4.90.0420.00817.48
8.4.80.0390.01117.55
8.4.70.0450.00717.59
8.4.60.0420.00817.53
8.4.50.0380.01217.55
8.4.40.0400.00917.40
8.4.30.0400.01117.27
8.4.20.0340.00717.54
8.4.10.0320.00917.49
8.3.310.0120.00818.50
8.3.300.0130.00820.75
8.3.290.0120.00920.71
8.3.280.0220.01018.35
8.3.270.0400.00916.43
8.3.260.0290.00616.54
8.3.250.0320.00616.50
8.3.240.0360.00716.41
8.3.230.0350.00916.58
8.3.220.0380.00716.38
8.3.210.0320.00716.46
8.3.200.0390.00816.49
8.3.190.0390.00716.60
8.3.180.0360.00916.59
8.3.170.0380.00916.45
8.3.160.0380.00816.48
8.3.150.0410.00916.41
8.3.140.0380.01116.57
8.3.130.0330.01016.48
8.3.120.0320.00916.54
8.3.110.0370.00816.38
8.3.100.0380.01116.59
8.3.90.0420.00916.32
8.3.80.0410.01016.64
8.3.70.0380.01016.51
8.3.60.0430.00816.58
8.3.50.0340.00816.38
8.3.40.0340.00517.52
8.3.30.0240.01017.40
8.3.20.0240.00717.44
8.3.10.0240.00817.55
8.3.00.0250.00817.45
8.2.310.0110.00817.98
8.2.300.0070.01220.37
8.2.290.0300.00816.33
8.2.280.0290.01116.29
8.2.270.0310.00716.29
8.2.260.0280.00716.45
8.2.250.0250.00716.38
8.2.240.0300.00716.39
8.2.230.0280.00916.22
8.2.220.0310.00716.17
8.2.210.0350.00816.26
8.2.200.0300.01016.24
8.2.190.0360.00816.28
8.2.180.0320.00916.25
8.2.170.0290.01017.69
8.2.160.0330.00917.55
8.2.150.0340.00717.57
8.2.140.0310.00717.44
8.2.130.0310.00917.50
8.2.120.0340.00817.61
8.2.110.0220.00517.64
8.2.100.0230.00817.58
8.2.90.0350.00917.73
8.2.80.0280.00917.52
8.2.70.0310.00517.43
8.2.60.0290.00817.33
8.2.50.0300.00817.50
8.2.40.0250.00917.63
8.2.30.0300.00817.57
8.2.20.0330.00817.50
8.2.10.0290.01117.47
8.2.00.0350.00917.51
8.1.340.0140.00821.83

preferences:
50.91 ms | 865 KiB | 5 Q