3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_field($field, $post_id, $format = true) { return ['project_manager' => 2, 'contractor' => 1][$field] ?? null; } 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.0170.00820.09
8.4.150.0010.00114.05
8.4.140.0170.00517.48
8.4.130.0120.00817.80
8.4.120.0050.00423.92
8.4.110.0110.01022.47
8.4.100.0120.00818.80
8.4.90.0120.00819.00
8.4.80.0040.00424.27
8.4.70.0050.00317.68
8.4.60.0050.00618.62
8.4.50.0080.00218.54
8.4.40.0160.00318.62
8.4.30.0100.01018.45
8.4.20.0140.00419.54
8.4.10.0080.00019.53
8.3.280.0170.00418.38
8.3.270.0080.01116.48
8.3.260.0140.00716.41
8.3.250.0120.00619.06
8.3.240.0130.00617.00
8.3.230.0120.00716.52
8.3.220.0070.00818.76
8.3.210.0110.00316.42
8.3.200.0050.00516.49
8.3.190.0090.01217.01
8.3.180.0090.01017.25
8.3.170.0060.01220.72
8.3.160.0120.00616.96
8.3.150.0170.00316.87
8.3.140.0160.00417.33
8.3.130.0080.00016.56
8.3.120.0060.00320.85
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00316.55
8.3.70.0110.01116.38
8.3.60.0090.00618.61
8.3.50.0070.01418.45
8.3.40.0100.01321.55
8.3.30.0110.01120.75
8.3.20.0120.00923.29
8.3.10.0070.01523.66
8.3.00.0040.01820.63
8.2.290.0140.00520.50
8.2.280.0120.00818.31
8.2.270.0140.00317.04
8.2.260.0050.00516.27
8.2.250.0000.01016.65
8.2.240.0060.00316.94
8.2.230.0110.00022.58
8.2.220.0040.00437.54
8.2.210.0110.00726.77
8.2.200.0040.00716.50
8.2.190.0160.00616.58
8.2.180.0110.00718.33
8.2.170.0090.00620.57
8.2.160.0100.01021.86
8.2.150.0090.01220.68
8.2.140.0160.00322.25
8.2.130.0130.00322.25
8.2.120.0070.00721.01
8.2.110.0170.00020.83
8.2.100.0110.00320.98
8.2.90.0090.00620.50
8.2.80.0110.00420.82
8.2.70.0040.01120.46
8.2.60.0060.01220.77
8.2.50.0140.00721.12
8.2.40.0080.00820.55
8.2.30.0090.01220.55
8.2.20.0130.00320.59
8.2.10.0090.01220.33
8.2.00.0140.00720.50
8.1.330.0120.00722.13
8.1.320.0100.00515.84
8.1.310.0060.00916.41
8.1.300.0060.00318.43
8.1.290.0080.00018.88
8.1.280.0070.00725.92
8.1.270.0150.00623.70
8.1.260.0170.00323.80
8.1.250.0140.00323.88
8.1.240.0070.01520.35
8.1.230.0180.00320.27
8.1.220.0110.00720.48
8.1.210.0060.01220.01
8.1.200.0140.00420.46
8.1.190.0060.01220.26
8.1.180.0070.01420.07
8.1.170.0090.01220.35
8.1.160.0070.01320.33
8.1.150.0060.01320.30
8.1.140.0110.00420.43
8.1.130.0060.00820.31
8.1.120.0060.01220.34
8.1.110.0130.00320.20
8.1.100.0050.01121.52
8.1.90.0090.00920.34
8.1.80.0110.00721.49
8.1.70.0120.00320.59
8.1.60.0160.00020.41
8.1.50.0100.00620.41
8.1.40.0090.00620.46
8.1.30.0070.01120.43
8.1.20.0070.00721.60
8.1.10.0120.00320.39
8.1.00.0180.00020.28

preferences:
29.24 ms | 403 KiB | 5 Q