3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = []; foreach (range(1, 20_000) as $iteration) { $original[] = [ 'id' => str_repeat("{$iteration}.", 4), 'name' => 'name', ]; } var_dump( array_column( $original, 'name', 'id' ) );

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.70.0310.01026.50
8.3.60.0330.01528.49
8.3.50.0300.01027.12
8.3.40.0310.01730.27
8.3.30.0450.01728.71
8.3.20.0290.00331.73
8.3.10.0300.01731.73
8.3.00.0220.00732.32
8.2.190.0480.01726.50
8.2.180.0340.01727.04
8.2.170.0400.00328.75
8.2.160.0390.00730.14
8.2.150.0160.01630.42
8.2.140.0160.00728.49
8.2.130.0260.00328.09
8.2.120.0120.00629.89
8.2.110.0200.01331.13
8.2.100.0160.01327.78
8.2.90.0090.00928.67
8.2.80.0100.01327.50
8.2.70.0030.01727.90
8.2.60.0140.01428.09
8.2.50.0070.01427.50
8.2.40.0140.01029.38
8.2.30.0100.00728.11
8.2.20.0120.01628.98
8.2.10.0180.01228.95
8.2.00.0230.00928.82
8.1.280.0270.01026.31
8.1.270.0200.01032.39
8.1.260.0290.01031.27
8.1.250.0200.00929.36
8.1.240.0260.01132.52
8.1.230.0290.00831.13
8.1.220.0190.00328.04
8.1.210.0140.00929.21
8.1.200.0210.00327.60
8.1.190.0250.00327.47
8.1.180.0120.00927.86
8.1.170.0040.01629.12
8.1.160.0120.00629.20
8.1.150.0070.01129.06
8.1.140.0220.01029.07
8.1.130.0270.00329.02
8.1.120.0220.00929.06
8.1.110.0210.00829.09
8.1.100.0240.01028.99
8.1.90.0240.00729.10
8.1.80.0150.01529.16
8.1.70.0210.01129.14
8.1.60.0260.00829.17
8.1.50.0160.01329.23
8.1.40.0220.01129.27
8.1.30.0150.01829.14
8.1.20.0230.01429.15
8.1.10.0160.01629.20
8.1.00.0270.00728.98
8.0.300.0090.00929.90
8.0.290.0190.00327.00
8.0.280.0180.00428.68
8.0.270.0000.02028.27
8.0.260.0220.00728.25
8.0.250.0220.00328.34
8.0.240.0100.02028.21
8.0.230.0160.01228.30
8.0.220.0180.01028.25
8.0.210.0230.00528.31
8.0.200.0210.00828.34
8.0.190.0230.00728.32
8.0.180.0220.01828.17
8.0.170.0070.01828.23
8.0.160.0170.01228.32
8.0.150.0210.01228.28
8.0.140.0040.02228.15
8.0.130.0120.01528.20
8.0.120.0170.01128.21
8.0.110.0290.00428.26
8.0.100.0250.00628.14
8.0.90.0090.01928.21
8.0.80.0280.00628.23
8.0.70.0200.01328.25
8.0.60.0250.00728.31
8.0.50.0170.01728.32
8.0.30.0190.00628.30
8.0.20.0130.01728.25
8.0.10.0160.01627.99

preferences:
34.69 ms | 402 KiB | 5 Q