3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_field($field, $post_id, $format = true) { return [ 'project_manager' => [33, 9, 21], 'architect' => [], 'contractor' => [17, 16] ][$field]; } function update_field($field, $payload, $post_id, $format = true) { var_export($payload); } function my_acf_save_post_31($post_id) { update_field( 'project_user_select', array_filter([ ...get_field('project_manager', $post_id, false), ...get_field('architect', $post_id, false), ...get_field('contractor', $post_id, false) ]), $post_id ); } my_acf_save_post_31(1);

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.00.0200.01119.89
8.4.150.0020.00014.05
8.4.140.0120.00917.29
8.4.130.0100.00917.95
8.4.120.0110.00824.11
8.4.110.0130.00722.35
8.4.100.0140.00618.49
8.4.90.0080.01219.12
8.4.80.0040.00424.29
8.4.70.0100.00918.05
8.4.60.0050.00319.04
8.4.50.0080.00318.92
8.4.40.0100.01018.65
8.4.30.0120.00818.66
8.4.20.0150.00319.54
8.4.10.0090.00019.32
8.3.280.0120.00719.94
8.3.270.0140.00916.68
8.3.260.0110.00816.50
8.3.250.0070.01118.73
8.3.240.0080.00817.02
8.3.230.0070.00116.51
8.3.220.0120.00618.76
8.3.210.0110.00816.69
8.3.200.0060.00316.41
8.3.190.0090.01016.98
8.3.180.0120.00816.91
8.3.170.0110.00718.95
8.3.160.0140.00417.38
8.3.150.0160.00317.09
8.3.140.0070.00417.28
8.3.130.0080.00018.30
8.3.120.0030.00620.47
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0030.00626.77
8.3.80.0060.00318.43
8.3.70.0150.00716.50
8.3.60.0100.01018.42
8.3.50.0120.00318.40
8.3.40.0160.00621.47
8.3.30.0110.01120.80
8.3.20.0100.01023.65
8.3.10.0110.01123.70
8.3.00.0100.01020.48
8.2.290.0140.00520.39
8.2.280.0130.00518.38
8.2.270.0040.01417.42
8.2.260.0000.01018.43
8.2.250.0000.00818.20
8.2.240.0090.00617.21
8.2.230.0130.00622.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0140.00016.75
8.2.190.0070.00716.88
8.2.180.0140.00016.50
8.2.170.0120.00920.52
8.2.160.0150.00321.64
8.2.150.0150.00620.76
8.2.140.0140.00722.00
8.2.130.0130.00722.26
8.2.120.0140.00720.83
8.2.110.0150.00021.05
8.2.100.0170.00320.99
8.2.90.0180.00320.41
8.2.80.0110.00420.89
8.2.70.0110.01120.45
8.2.60.0150.00620.59
8.2.50.0040.01821.12
8.2.40.0180.00320.55
8.2.30.0110.00720.51
8.2.20.0090.00920.42
8.2.10.0040.01120.55
8.2.00.0070.00720.42
8.1.330.0120.00722.07
8.1.320.0080.00415.90
8.1.310.0100.00316.50
8.1.300.0100.01020.28
8.1.290.0060.00330.84
8.1.280.0160.00325.92
8.1.270.0140.00323.91
8.1.260.0030.01523.76
8.1.250.0070.01023.81
8.1.240.0150.00420.28
8.1.230.0100.00620.05
8.1.220.0090.00920.36
8.1.210.0110.00720.07
8.1.200.0070.01120.30
8.1.190.0140.00720.22
8.1.180.0150.00620.09
8.1.170.0190.00320.41
8.1.160.0000.01920.07
8.1.150.0120.00620.27
8.1.140.0070.01420.38
8.1.130.0100.01020.47
8.1.120.0190.00620.27
8.1.110.0100.01320.19
8.1.100.0070.01321.39
8.1.90.0150.00320.21
8.1.80.0070.00721.47
8.1.70.0060.00920.49
8.1.60.0190.00320.46
8.1.50.0090.00620.16
8.1.40.0040.01120.41
8.1.30.0160.00020.64
8.1.20.0110.00421.71
8.1.10.0090.00920.43
8.1.00.0140.00420.28

preferences:
31.23 ms | 403 KiB | 5 Q