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_filter( $original, static function (array $item): bool { return str_starts_with($item['id'], '11'); } ) );

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.0500.01025.50
8.3.60.0300.02726.23
8.3.50.0290.01626.24
8.3.40.0310.01429.35
8.3.30.0410.01727.64
8.3.20.0170.00730.88
8.3.10.0070.01531.02
8.3.00.0220.00930.85
8.2.190.0330.02625.50
8.2.180.0390.01325.92
8.2.170.0510.02127.90
8.2.160.0300.03029.52
8.2.150.0160.01029.29
8.2.140.0220.00629.47
8.2.130.0170.00828.85
8.2.120.0120.00828.87
8.2.110.0210.00629.70
8.2.100.0200.01027.03
8.2.90.0160.01026.97
8.2.80.0030.01727.33
8.2.70.0030.01626.88
8.2.60.0150.00927.15
8.2.50.0150.00326.63
8.2.40.0070.01427.41
8.2.30.0120.01227.37
8.2.20.0170.00928.21
8.2.10.0250.00328.07
8.2.00.0160.02028.12
8.1.280.0330.01627.58
8.1.270.0110.01131.82
8.1.260.0160.01330.66
8.1.250.0110.01931.77
8.1.240.0190.01132.74
8.1.230.0210.00731.11
8.1.220.0060.01327.41
8.1.210.0140.00728.60
8.1.200.0080.01227.10
8.1.190.0100.01026.98
8.1.180.0160.01127.16
8.1.170.0150.00928.53
8.1.160.0090.01428.63
8.1.150.0070.01828.43
8.1.140.0200.01228.34
8.1.130.0220.01128.28
8.1.120.0150.01528.31
8.1.110.0110.02228.36
8.1.100.0190.01928.30
8.1.90.0130.01628.44
8.1.80.0200.01028.45
8.1.70.0190.01328.42
8.1.60.0160.02028.55
8.1.50.0180.01828.41
8.1.40.0210.00728.49
8.1.30.0240.01028.58
8.1.20.0260.00428.45
8.1.10.0240.00728.46
8.1.00.0260.01528.36
8.0.300.0070.01329.37
8.0.290.0130.00926.00
8.0.280.0060.01327.92
8.0.270.0220.00627.53
8.0.260.0150.01227.50
8.0.250.0210.01127.42
8.0.240.0160.01127.43
8.0.230.0230.00727.48
8.0.220.0210.00727.38
8.0.210.0190.01327.35
8.0.200.0160.00827.48
8.0.190.0230.00927.50
8.0.180.0210.01427.48
8.0.170.0250.00427.43
8.0.160.0200.01027.53
8.0.150.0140.01127.47
8.0.140.0240.01027.59
8.0.130.0180.01127.40
8.0.120.0170.01727.54
8.0.110.0220.01127.53
8.0.100.0280.00627.46
8.0.90.0170.01527.48
8.0.80.0210.00727.46
8.0.70.0240.00727.42
8.0.60.0170.01127.42
8.0.50.0120.02027.59
8.0.30.0240.00727.52
8.0.20.0140.01427.57
8.0.10.0200.01327.44

preferences:
40.19 ms | 402 KiB | 5 Q