3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = [ [ 'id' => 1, 'name' => 'foo', 'blah' => 'blah' ], [ 'id' => 14, 'name' => 'bar', 'blah' => 'blah' ], [ 'id' => 4, 'name' => 'baz', 'blah' => 'blah' ], [ 'id' => 16, 'name' => 'foobar', 'blah' => 'blah' ] ]; var_dump(array_filter($records, fn(array $detail): bool => in_array($detail['id'], [14, 16])));

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.130.0040.00517.68
8.4.120.0120.00824.22
8.4.110.0090.01220.41
8.4.100.0130.00917.71
8.4.90.0080.00917.93
8.4.80.0030.00519.36
8.4.70.0100.01017.85
8.4.60.0120.00823.97
8.4.50.0130.00618.83
8.4.40.0100.01017.68
8.4.30.0150.00318.72
8.4.20.0080.01119.00
8.4.10.0090.00022.15
8.3.260.0050.00516.80
8.3.250.0100.00918.74
8.3.240.0120.00616.61
8.3.230.0130.00616.42
8.3.220.0140.00516.50
8.3.210.0120.00616.52
8.3.200.0030.00516.48
8.3.190.0110.00818.99
8.3.180.0130.00616.55
8.3.170.0060.00317.41
8.3.160.0140.00418.28
8.3.150.0170.00318.26
8.3.140.0000.01017.03
8.3.130.0100.00018.47
8.3.120.0030.00618.48
8.3.110.0050.00216.63
8.3.100.0030.00518.21
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0090.01316.58
8.3.60.0120.00318.43
8.3.50.0070.01418.37
8.3.40.0070.01320.20
8.3.30.0090.00618.72
8.3.20.0050.00224.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00918.87
8.2.280.0100.00918.41
8.2.270.0040.01117.17
8.2.260.0000.00816.59
8.2.250.0120.00616.50
8.2.240.0060.00317.05
8.2.230.0030.00520.94
8.2.220.0080.00024.06
8.2.210.0090.00626.77
8.2.200.0030.00618.41
8.2.190.0120.00616.58
8.2.180.0100.00725.92
8.2.170.0150.00419.09
8.2.160.0140.00022.96
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00319.66
8.2.110.0040.00722.20
8.2.100.0060.00617.84
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0030.00717.93
8.2.50.0050.00518.07
8.2.40.0000.01018.35
8.2.30.0040.00418.04
8.2.20.0050.00319.21
8.2.10.0000.00718.15
8.2.00.0000.00819.37
8.1.330.0130.00715.94
8.1.320.0100.00916.24
8.1.310.0030.00618.38
8.1.300.0030.00617.62
8.1.290.0060.00330.84
8.1.280.0130.00325.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00420.73
8.1.230.0040.00717.83
8.1.220.0080.00017.75
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0040.00418.90
8.1.150.0070.00018.55
8.1.140.0000.00717.32
8.1.130.0040.00418.94
8.1.120.0000.00717.36
8.1.110.0000.00817.34
8.1.100.0120.00317.39
8.1.90.0100.00717.43
8.1.80.0120.00317.43
8.1.70.0100.00517.35
8.1.60.0170.00017.39
8.1.50.0140.00417.36
8.1.40.0140.00317.41
8.1.30.0120.00517.48
8.1.20.0150.00417.61
8.1.10.0120.00617.51
8.1.00.0160.00217.42
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0030.00516.76
8.0.260.0060.00018.38
8.0.250.0000.00816.89
8.0.240.0050.00316.96
8.0.230.0110.00516.83
8.0.220.0100.00516.80
8.0.210.0060.01116.76
8.0.200.0150.00016.85
8.0.190.0140.00016.89
8.0.180.0100.00516.81
8.0.170.0100.00516.86
8.0.160.0130.00316.77
8.0.150.0150.00016.83
8.0.140.0110.00416.69
8.0.130.0140.00316.65
8.0.120.0080.00416.79
8.0.110.0050.00716.65
8.0.100.0140.00016.86
8.0.90.0160.00016.88
8.0.80.0120.00416.88
8.0.70.0080.00816.80
8.0.60.0070.00716.80
8.0.50.0090.00216.68
8.0.30.0100.00616.70
8.0.20.0140.00016.90
8.0.10.0070.00716.86
7.4.330.0040.00415.55
7.4.320.0030.00316.61
7.4.300.0030.00716.57
7.4.290.0110.00016.34
7.4.280.0050.00816.56
7.4.270.0090.00316.38
7.4.260.0120.00016.40
7.4.250.0040.00616.54
7.4.240.0070.00316.45
7.4.230.0000.01016.44
7.4.220.0070.00316.57
7.4.210.0110.00016.44
7.4.200.0060.00316.38
7.4.190.0040.00416.24
7.4.180.0040.00416.41
7.4.160.0030.00516.49
7.4.150.0040.00416.52
7.4.140.0070.00416.14
7.4.130.0030.00716.01
7.4.120.0000.00916.07
7.4.110.0020.00816.34
7.4.100.0020.00816.53
7.4.90.0060.00316.25
7.4.80.0110.00016.27
7.4.70.0070.00316.50
7.4.60.0100.00016.10
7.4.50.0100.00016.27
7.4.40.0110.00016.07
7.4.30.0000.01016.39
7.4.20.0040.00816.24
7.4.10.0110.00016.25
7.4.00.0080.00416.21

preferences:
36.42 ms | 403 KiB | 5 Q