3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uploadedAssets = json_decode('[ { "id": 28, "video_id": 5, "wistia_id": "4q9l3wynf5", "camera_angle": "front", "starting_foot": null, "verbal_cue": "on" }, { "id": 29, "video_id": 5, "wistia_id": "0puffz75s7", "camera_angle": "front", "starting_foot": null, "verbal_cue": "off" }, { "id": 30, "video_id": 5, "wistia_id": "9drxqjvfjm", "camera_angle": "back", "starting_foot": null, "verbal_cue": "on" }, { "id": 31, "video_id": 5, "wistia_id": "2ivgoapitc", "camera_angle": "back", "starting_foot": null, "verbal_cue": "off" } ]', true); var_dump($uploadedAssets); die(); $goodAsset = null; $demands = [ ['attribute' => 'camera_angle', 'value' => 'front'], ['attribute' => 'starting_foot', 'value' => 'right'], ['attribute' => 'verbal_cue', 'value' => 'off'] ]; while (!empty($demands)) { foreach ($uploadedAssets as $asset) { $match = true; foreach ($demands as $demand) { if ($asset[$demand['attribute']] != $demand['value']) { $match = false; break; } } if ($match) { $goodAsset = $asset; break; } } if (empty($goodAsset)) { array_pop($demands); } }

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.60.0280.00915.99
8.3.50.0080.01022.05
8.3.40.0130.01018.67
8.3.30.0070.01018.92
8.3.20.0090.00920.23
8.3.10.0090.00021.76
8.3.00.0040.00819.06
8.2.180.0080.00818.20
8.2.170.0100.01322.96
8.2.160.0120.00920.36
8.2.150.0030.00624.18
8.2.140.0110.00724.66
8.2.130.0060.00326.16
8.2.120.0000.00919.77
8.2.110.0030.00620.56
8.2.100.0090.00317.80
8.2.90.0080.00019.05
8.2.80.0000.00817.97
8.2.70.0000.00917.38
8.2.60.0050.00317.91
8.2.50.0000.00818.07
8.2.40.0030.00519.76
8.2.30.0050.00317.88
8.2.20.0000.00817.68
8.2.10.0040.00417.96
8.2.00.0000.00817.66
8.1.280.0060.00925.92
8.1.270.0040.00718.74
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0090.00023.82
8.1.230.0080.00423.86
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0090.00018.65
8.1.160.0000.00721.98
8.1.150.0000.00818.70
8.1.140.0040.00419.25
8.1.130.0000.00717.89
8.1.120.0000.00917.40
8.1.110.0000.00817.30
8.1.100.0040.00417.40
8.1.90.0100.00017.25
8.1.80.0040.00417.40
8.1.70.0000.00717.45
8.1.60.0040.00417.41
8.1.50.0050.00317.48
8.1.40.0040.00417.41
8.1.30.0000.00917.54
8.1.20.0040.00417.50
8.1.10.0060.00317.42
8.1.00.0070.00317.46
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0050.00218.44
8.0.270.0040.00417.18
8.0.260.0030.00317.20
8.0.250.0030.00317.01
8.0.240.0030.00516.85
8.0.230.0040.00416.98
8.0.220.0030.00516.88
8.0.210.0000.00816.91
8.0.200.0030.00616.93
8.0.190.0040.00417.00
8.0.180.0060.00316.81
8.0.170.0040.00416.93
8.0.160.0000.00716.89
8.0.150.0040.00416.81
8.0.140.0060.00316.82
8.0.130.0060.00013.29
8.0.120.0050.00316.79
8.0.110.0030.00516.85
8.0.100.0070.00016.74
8.0.90.0080.00016.73
8.0.80.0130.01016.93
8.0.70.0030.00516.79
8.0.60.0070.00016.96
8.0.50.0000.00816.91
8.0.30.0140.01317.05
8.0.20.0150.01017.40
8.0.10.0040.00416.90
8.0.00.0090.01216.58
7.4.330.0030.00315.03
7.4.320.0000.00816.44
7.4.300.0030.00316.45
7.4.290.0000.00716.44
7.4.280.0000.00716.55
7.4.270.0000.00716.38
7.4.260.0060.00316.37
7.4.250.0030.00616.52
7.4.240.0020.00516.50
7.4.230.0070.00016.35
7.4.220.0100.01016.45
7.4.210.0030.01316.61
7.4.200.0000.00716.34
7.4.160.0060.01116.46
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0110.00916.46
7.4.120.0120.00716.39
7.4.110.0180.00016.59
7.4.100.0210.00316.36
7.4.90.0180.00416.38
7.4.80.0040.01516.36
7.4.70.0130.00516.32
7.4.60.0070.01016.45
7.4.50.0040.00416.21
7.4.40.0090.00916.68
7.4.30.0160.00916.46
7.4.00.0080.00814.95
7.3.330.0050.00013.05
7.3.320.0170.00012.98
7.3.310.0060.00316.35
7.3.300.0070.00016.21
7.3.290.0080.00816.15
7.3.280.0090.01116.21
7.3.270.0210.01717.40
7.3.260.0070.01116.56
7.3.250.0130.01616.39
7.3.240.0120.01216.42
7.3.230.0110.00616.39
7.3.210.0070.01116.38
7.3.200.0160.00819.39
7.3.190.0130.00316.14
7.3.180.0110.01116.29
7.3.170.0140.01016.52
7.3.160.0150.00716.30
7.3.10.0100.00316.48
7.3.00.0000.01316.67
7.2.330.0120.00616.64
7.2.320.0090.00916.56
7.2.310.0000.02016.24
7.2.300.0100.00716.46
7.2.290.0060.01216.34
7.2.130.0070.00716.72
7.2.120.0030.00716.55
7.2.110.0030.01016.99
7.2.100.0080.00016.89
7.2.90.0030.00916.61
7.2.80.0090.00316.80
7.2.70.0000.00916.85
7.2.60.0020.01016.83
7.2.50.0000.01316.91
7.2.40.0100.00316.80
7.2.30.0000.01116.63
7.2.20.0030.01016.89
7.2.10.0060.00316.80
7.2.00.0050.00618.14
7.1.250.0050.00315.66
7.1.200.0000.00715.82
7.1.100.0000.00817.65
7.1.70.0090.00017.20
7.1.60.0090.01219.46
7.1.50.0030.01916.63
7.1.00.0000.08022.51
7.0.200.0260.01014.89
7.0.140.0030.05022.12
7.0.60.0070.06019.82
7.0.50.0030.04017.83
7.0.40.0170.07020.08
7.0.30.0330.07020.19
7.0.20.0300.07720.04
7.0.10.0130.05720.20
7.0.00.0100.07320.17
5.6.280.0030.06721.12
5.6.210.0070.08020.50
5.6.200.0000.04318.24
5.6.190.0100.04720.61
5.6.180.0370.05320.27
5.6.170.0230.04320.50
5.6.160.0030.04320.42
5.6.150.0030.04718.19
5.6.140.0000.04018.11
5.6.130.0030.04018.17
5.6.120.0030.05321.14
5.6.110.0270.06720.98
5.6.100.0070.06321.02
5.6.90.0130.07721.09
5.6.80.0030.04020.38
5.5.350.0330.07720.41
5.5.340.0000.07017.97
5.5.330.0100.05320.36
5.5.320.0070.08020.28
5.5.310.0200.03320.21
5.5.300.0000.04317.88
5.5.290.0100.07717.98
5.5.280.0030.04020.90
5.5.270.0100.04720.74
5.5.260.0070.08720.76
5.5.250.0030.04020.66
5.5.240.0130.07320.26
5.4.450.0200.03319.55
5.4.440.0230.04019.54
5.4.430.0230.03719.41
5.4.420.0130.04019.41
5.4.410.0270.03019.13
5.4.400.0300.04019.13
5.4.390.0270.05019.09
5.4.380.0300.03719.06
5.4.370.0330.06019.13
5.4.360.0270.07019.07
5.4.350.0300.03718.88
5.4.340.0330.08319.11
5.4.320.0330.06718.93
5.4.310.0370.06019.25
5.4.300.0230.03718.93
5.4.290.0300.07318.92
5.4.280.0230.04018.93
5.4.270.0270.05718.88
5.4.260.0230.06719.16
5.4.250.0270.06719.24
5.4.240.0200.04019.07
5.4.230.0300.07319.25
5.4.220.0230.07019.17
5.4.210.0230.06318.92
5.4.200.0300.03319.24
5.4.190.0230.06319.07
5.4.180.0270.06718.79
5.4.170.0200.05318.78
5.4.160.0300.07019.05
5.4.150.0270.05719.07
5.4.140.0330.07016.43
5.4.130.0300.05716.35
5.4.120.0270.06716.19
5.4.110.0330.04016.39
5.4.100.0270.05016.06
5.4.90.0270.04716.34
5.4.80.0270.04316.50
5.4.70.0230.06716.48
5.4.60.0200.03716.09
5.4.50.0170.05016.41
5.4.40.0170.03716.20
5.4.30.0230.03016.36
5.4.20.0200.04716.18
5.4.10.0230.05316.33
5.4.00.0330.04015.90
5.3.290.0270.07314.52
5.3.280.0130.05014.43
5.3.270.0300.07014.59
5.3.260.0270.07314.46
5.3.250.0300.06314.55
5.3.240.0270.06314.56
5.3.230.0270.07714.51
5.3.220.0270.06014.61
5.3.210.0270.07714.54
5.3.200.0230.07714.41
5.3.190.0200.04314.55
5.3.180.0270.03714.59
5.3.170.0230.03714.52
5.3.160.0170.03714.42
5.3.150.0170.07714.55
5.3.140.0130.04714.42
5.3.130.0200.03314.38
5.3.120.0170.03714.48
5.3.110.0270.06714.39
5.3.100.0270.03713.88
5.3.90.0230.05013.86
5.3.80.0200.07713.88
5.3.70.0200.06013.97
5.3.60.0230.05313.85
5.3.50.0300.04713.74
5.3.40.0130.04013.79
5.3.30.0200.04713.74
5.3.20.0230.03713.52
5.3.10.0200.03313.61
5.3.00.0270.03013.60
5.2.170.0000.05011.68
5.2.160.0200.06011.69
5.2.150.0300.04311.69
5.2.140.0270.05311.71
5.2.130.0130.06011.72
5.2.120.0130.03011.73
5.2.110.0170.05711.74
5.2.100.0100.03311.75
5.2.90.0200.05311.75
5.2.80.0170.02711.75
5.2.70.0130.03711.75
5.2.60.0170.04711.75
5.2.50.0100.03311.75
5.2.40.0130.03011.75
5.2.30.0200.02311.75
5.2.20.0230.04711.75
5.2.10.0230.03311.75
5.2.00.0470.04011.75
5.1.60.0200.05011.75
5.1.50.0170.05011.75
5.1.40.0130.04011.75
5.1.30.0170.03011.75
5.1.20.0200.04011.75
5.1.10.0200.02711.75
5.1.00.0130.03011.75
5.0.50.0100.04711.75
5.0.40.0100.04311.75
5.0.30.0130.04711.75
5.0.20.0070.04311.75
5.0.10.0070.04711.75
5.0.00.0100.05711.75
4.4.90.0070.01311.75
4.4.80.0030.02011.75
4.4.70.0070.04011.75
4.4.60.0100.03311.75
4.4.50.0070.03311.75
4.4.40.0100.05711.75
4.4.30.0070.03011.75
4.4.20.0130.01311.75
4.4.10.0070.03711.75
4.4.00.0100.03711.75
4.3.110.0130.03011.75
4.3.100.0100.03311.75
4.3.90.0170.01711.75
4.3.80.0100.03311.75
4.3.70.0100.03011.75
4.3.60.0070.03311.75
4.3.50.0070.02311.75
4.3.40.0130.02711.75
4.3.30.0070.03011.75
4.3.20.0030.03711.75
4.3.10.0070.02711.75
4.3.00.0070.02311.75

preferences:
64.3 ms | 401 KiB | 5 Q