3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ["field" => 1, "value" => "strawberry"], ["field" => 2, "value" => null], ["field" => 3, "value" => "apple"] ]; var_dump(array_filter($array, fn($arr) => $arr['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.5.70.0050.00518.68
8.5.60.0110.00816.69
8.5.50.0110.00816.75
8.5.30.0110.00618.86
8.5.20.0120.00619.49
8.5.10.0130.00418.41
8.5.00.0110.01220.13
8.4.210.0120.00919.53
8.4.180.0120.01119.65
8.4.170.0110.01220.38
8.4.160.0150.00723.73
8.4.150.0080.00416.83
8.4.140.0110.01317.52
8.4.130.0150.00518.51
8.4.120.0130.00623.93
8.4.110.0090.00720.67
8.4.100.0060.00317.78
8.4.90.0130.00817.71
8.4.80.0100.00822.48
8.4.70.0090.01117.79
8.4.60.0110.00919.05
8.4.50.0100.00718.49
8.4.40.0120.00617.98
8.4.30.0100.01020.72
8.4.20.0100.01018.70
8.4.10.0100.01017.51
8.3.300.0150.00720.75
8.3.290.0120.00818.50
8.3.280.0140.00718.51
8.3.270.0090.01016.52
8.3.260.0100.01016.76
8.3.250.0070.00518.69
8.3.240.0120.00617.09
8.3.230.0110.01016.30
8.3.220.0050.00317.20
8.3.210.0070.00116.39
8.3.200.0050.00616.71
8.3.190.0140.00518.85
8.3.180.0080.01116.36
8.3.170.0110.00720.73
8.3.160.0140.00416.41
8.3.150.0120.00620.49
8.3.140.0040.00419.02
8.3.130.0080.00018.50
8.3.120.0040.00420.79
8.3.110.0060.00320.94
8.3.100.0000.00924.06
8.3.90.0000.00826.77
8.3.80.0000.00916.75
8.3.70.0080.00816.63
8.3.60.0110.00418.55
8.3.50.0110.00719.70
8.3.40.0100.00319.07
8.3.30.0060.00918.68
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.300.0110.01018.87
8.2.290.0130.00520.32
8.2.280.0130.00718.20
8.2.270.0120.00617.04
8.2.260.0000.00816.98
8.2.250.0040.01118.39
8.2.240.0080.00016.98
8.2.230.0130.00622.58
8.2.220.0040.00437.54
8.2.210.0000.00826.77
8.2.200.0100.00016.38
8.2.190.0120.00316.58
8.2.180.0060.00925.92
8.2.170.0040.01118.91
8.2.160.0080.00522.96
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0020.00526.16
8.2.120.0070.00726.16
8.2.110.0060.00322.25
8.2.100.0070.00317.84
8.2.90.0000.00918.03
8.2.80.0040.00418.20
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0000.00818.35
8.2.30.0060.00318.11
8.2.20.0080.00019.34
8.2.10.0070.00017.79
8.2.00.0020.00519.41
8.1.340.0120.00923.48
8.1.330.0120.00722.04
8.1.320.0110.00816.34
8.1.310.0000.00818.46
8.1.300.0040.00419.54
8.1.290.0030.00618.88
8.1.280.0140.00425.92
8.1.270.0100.00023.85
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.19
8.1.230.0110.00021.10
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0030.00618.89
8.1.160.0050.00318.89
8.1.150.0050.00318.63
8.1.140.0000.00717.45
8.1.130.0000.00717.50
8.1.120.0030.00717.46
8.1.110.0000.00717.47
8.1.100.0040.00417.46
8.1.90.0040.00417.46
8.1.80.0060.00617.46
8.1.70.0030.00317.45
8.1.60.0050.00317.62
8.1.50.0000.00917.53
8.1.40.0080.00017.44
8.1.30.0040.00417.59
8.1.20.0040.00417.67
8.1.10.0000.00717.45
8.1.00.0000.00717.41
8.0.300.0040.00419.89
8.0.290.0000.00716.63
8.0.280.0030.00318.25
8.0.270.0040.00416.66
8.0.260.0070.00016.75
8.0.250.0040.00416.94
8.0.240.0030.00316.87
8.0.230.0030.00316.90
8.0.220.0000.00716.81
8.0.210.0000.00716.89
8.0.200.0030.00316.96
8.0.190.0040.00416.95
8.0.180.0060.00616.81
8.0.170.0030.00616.83
8.0.160.0050.00316.79
8.0.150.0030.00316.78
8.0.140.0070.00016.84
8.0.130.0030.00313.35
8.0.120.0090.00413.38
8.0.110.0080.00613.27
8.0.100.0090.00313.23
8.0.90.0050.00913.30
8.0.80.0100.00313.31
8.0.70.0140.00013.34
8.0.60.0070.00313.24
8.0.50.0060.00613.30
8.0.30.0080.00613.32
8.0.20.0080.00313.41
8.0.10.0070.00213.46
8.0.00.0070.00013.37
7.4.330.0060.00015.55
7.4.320.0070.00016.50
7.4.300.0070.00016.58
7.4.290.0030.00516.40
7.4.280.0000.00716.59
7.4.270.0030.00316.50
7.4.260.0000.00613.25
7.4.250.0090.00213.31
7.4.240.0120.00313.24
7.4.230.0100.00313.34
7.4.220.0080.00313.26
7.4.210.0110.00013.22
7.4.200.0130.00013.25
7.4.190.0090.00313.34
7.4.180.0120.00013.41
7.4.160.0080.00413.30
7.4.150.0070.00313.30
7.4.140.0090.00313.32
7.4.130.0100.00013.07
7.4.120.0130.00013.07
7.4.110.0070.00313.14
7.4.100.0130.00013.27
7.4.90.0070.00713.18
7.4.80.0090.00613.09
7.4.70.0080.00613.03
7.4.60.0130.00013.16
7.4.50.0130.00013.18
7.4.40.0130.00012.99
7.4.30.0140.00013.12
7.4.20.0130.00013.13
7.4.10.0050.00813.37
7.4.00.0080.00613.23
7.3.330.0040.00416.28
7.3.320.0060.00013.28
7.3.310.0100.00213.06
7.3.300.0070.00713.21
7.3.290.0120.00213.13
7.3.280.0080.00613.00
7.3.270.0140.00012.95
7.3.260.0170.00012.97
7.3.250.0090.00412.94
7.3.240.0040.00412.96
7.3.230.0100.00413.01
7.3.220.0070.00812.98
7.3.210.0070.00712.97
7.3.200.0120.00313.12
7.3.190.0140.00013.12
7.3.180.0140.00012.97
7.3.170.0120.00313.20
7.3.160.0110.00213.13
7.3.150.0090.00612.92
7.3.140.0150.00012.94
7.3.130.0070.00612.87
7.3.120.0050.00512.99
7.3.110.0150.00012.83
7.3.100.0080.00513.02
7.3.90.0120.00013.25
7.3.80.0070.00712.93
7.3.70.0110.00313.20
7.3.60.0070.00613.02
7.3.50.0120.00313.27
7.3.40.0120.00013.02
7.3.30.0130.00013.02
7.3.20.0090.00615.00
7.3.10.0100.00414.98
7.3.00.0080.00614.91

preferences:
101.23 ms | 1426 KiB | 5 Q