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": "left", "verbal_cue": "on" }, { "id": 29, "video_id": 5, "wistia_id": "0puffz75s7", "camera_angle": "front", "starting_foot": "right", "verbal_cue": "off" }, { "id": 30, "video_id": 5, "wistia_id": "9drxqjvfjm", "camera_angle": "back", "starting_foot": "left", "verbal_cue": "on" }, { "id": 31, "video_id": 5, "wistia_id": "2ivgoapitc", "camera_angle": "back", "starting_foot": "right", "verbal_cue": "off" } ]', true); $goodAsset = null; $demands = [ ['attribute' => 'camera_angle', 'value' => 'front'], ['attribute' => 'starting_foot', 'value' => 'right'], ['attribute' => 'verbal_cue', 'value' => 'off'] ]; while (!empty($demands) || empty($goodAsset)) { foreach ($uploadedAssets as $asset) { $match = true; foreach ($demands as $demand) { if ($asset[$demand['attribute']] != $demand['value']) { $match = false; break; } } if ($match) { $goodAsset = $asset; break; } } array_pop($demands); } var_dump($goodAsset);

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.0080.01216.38
8.3.50.0140.00821.97
8.3.40.0070.01118.67
8.3.30.0150.00018.87
8.3.20.0140.00020.52
8.3.10.0150.00321.76
8.3.00.0070.00320.94
8.2.180.0090.01318.26
8.2.170.0170.00322.96
8.2.160.0140.00720.32
8.2.150.0070.01124.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0180.00019.89
8.2.110.0060.00320.51
8.2.100.0110.00018.16
8.2.90.0040.00419.22
8.2.80.0000.00917.97
8.2.70.0040.00417.75
8.2.60.0080.00018.05
8.2.50.0000.00818.07
8.2.40.0000.00819.80
8.2.30.0090.00018.14
8.2.20.0000.00817.73
8.2.10.0070.00018.17
8.2.00.0000.00717.84
8.1.280.0170.00325.92
8.1.270.0080.00819.01
8.1.260.0040.00426.35
8.1.250.0100.00628.09
8.1.240.0030.00623.88
8.1.230.0040.00719.24
8.1.220.0070.00017.76
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0040.00421.96
8.1.150.0000.00718.89
8.1.140.0000.00719.15
8.1.130.0000.00817.82
8.1.120.0000.00717.50
8.1.110.0040.00417.42
8.1.100.0030.00317.36
8.1.90.0060.00317.34
8.1.80.0000.00817.34
8.1.70.0000.00717.38
8.1.60.0090.00017.61
8.1.50.0030.00517.57
8.1.40.0000.00717.45
8.1.30.0050.00317.58
8.1.20.0000.00817.59
8.1.10.0050.00317.57
8.1.00.0110.00017.58
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0000.00718.46
8.0.270.0070.00017.30
8.0.260.0000.00617.26
8.0.250.0070.00016.95
8.0.240.0040.00416.89
8.0.230.0040.00416.98
8.0.220.0030.00316.94
8.0.210.0000.00816.82
8.0.200.0000.01016.98
8.0.190.0030.00516.96
8.0.180.0040.00416.98
8.0.170.0070.00016.87
8.0.160.0040.00416.83
8.0.150.0000.00716.80
8.0.140.0000.00716.74
8.0.130.0050.00013.25
8.0.120.0060.00316.79
8.0.110.0000.00816.74
8.0.100.0060.00316.92
8.0.90.0040.00416.80
8.0.80.0110.00616.89
8.0.70.0050.00316.67
8.0.60.0000.00716.76
8.0.50.0080.00016.78
8.0.30.0120.01117.03
8.0.20.0090.01117.40
8.0.10.0000.00717.00
8.0.00.0120.00916.86
7.4.330.0030.00315.03
7.4.320.0060.00016.63
7.4.300.0070.00016.42
7.4.290.0030.00316.45
7.4.280.0040.00416.51
7.4.270.0080.00016.43
7.4.260.0070.00416.46
7.4.250.0080.00016.47
7.4.240.0020.00516.57
7.4.230.0040.00416.69
7.4.220.0120.00616.57
7.4.210.0100.00416.61
7.4.200.0020.00516.44
7.4.160.0100.00516.48
7.4.150.0060.01217.40
7.4.140.0080.01117.86
7.4.130.0110.00616.61
7.4.120.0090.00916.58
7.4.110.0110.00716.45
7.4.100.0070.01116.58
7.4.90.0070.01016.35
7.4.80.0070.01416.41
7.4.70.0130.00316.62
7.4.60.0060.01016.44
7.4.50.0030.00516.36
7.4.40.0130.00416.32
7.4.30.0100.01016.44
7.4.00.0000.01214.67
7.3.330.0020.00213.27
7.3.320.0070.00713.24
7.3.310.0000.00816.16
7.3.300.0030.00316.35
7.3.290.0070.00716.35
7.3.280.0100.00716.33
7.3.270.0060.01617.40
7.3.260.0060.01116.38
7.3.250.0090.00816.43
7.3.240.0160.00716.31
7.3.230.0060.01216.59
7.3.210.0040.01316.58
7.3.200.0040.01519.39
7.3.190.0140.00316.57
7.3.180.0030.01616.23
7.3.170.0130.01316.36
7.3.160.0120.00616.52
7.2.330.0110.00816.57
7.2.320.0040.01216.66
7.2.310.0180.01816.85
7.2.300.0160.00316.67
7.2.290.0100.00716.77
7.2.60.0060.00616.71
7.2.00.0000.01319.57
7.1.200.0100.00315.64
7.1.100.0030.00817.97
7.1.70.0040.00816.93
7.1.60.0090.01519.46
7.1.50.0100.01316.85
7.1.00.0100.07022.28
7.0.200.0290.00014.77
7.0.140.0000.06722.23
7.0.60.0070.08020.06
7.0.50.0070.04017.79
7.0.40.0030.07319.90
7.0.30.0270.06720.04
7.0.20.0300.04320.22
7.0.10.0100.08720.20
7.0.00.0070.07320.17
5.6.280.0070.07021.08
5.6.210.0100.07720.48
5.6.200.0070.08718.19
5.6.190.0000.05020.61
5.6.180.0470.05720.39
5.6.170.0200.08020.50
5.6.160.0000.04320.49
5.6.150.0070.07318.12
5.6.140.0100.05018.14
5.6.130.0030.04318.15
5.6.120.0070.05020.89
5.6.110.0100.07321.09
5.6.100.0000.07321.13
5.6.90.0030.06721.13
5.6.80.0100.03020.39
5.5.350.0370.06720.46
5.5.340.0100.06017.97
5.5.330.0130.08320.56
5.5.320.0000.08020.29
5.5.310.0200.03720.19
5.5.300.0030.04318.03
5.5.290.0000.04717.89
5.5.280.0030.04020.66
5.5.270.0100.04020.86
5.5.260.0100.05720.79
5.5.250.0000.04320.50
5.5.240.0170.04720.13
5.4.450.0270.05319.11
5.4.440.0200.05019.25
5.4.430.0270.07319.12
5.4.420.0230.05719.41
5.4.410.0200.07719.33
5.4.400.0130.06019.22
5.4.390.0370.04718.80
5.4.380.0300.07018.80
5.4.370.0300.05318.92
5.4.360.0170.05718.93
5.4.350.0270.06719.13
5.4.340.0200.06318.86
5.4.320.0270.06719.13
5.4.310.0230.05719.25
5.4.300.0270.06319.25
5.4.290.0200.04019.25
5.4.280.0330.06719.09
5.4.270.0270.05719.17
5.4.260.0200.07319.21
5.4.250.0230.07319.07
5.4.240.0270.04718.78
5.4.230.0230.06318.92
5.4.220.0230.05318.80
5.4.210.0200.04319.15
5.4.200.0170.07019.13
5.4.190.0430.05318.87
5.4.180.0270.07319.13
5.4.170.0230.04719.15
5.4.160.0170.03718.86
5.4.150.0170.05019.18
5.4.140.0230.03316.47
5.4.130.0170.05316.37
5.4.120.0230.04316.22
5.4.110.0200.04716.30
5.4.100.0430.02316.22
5.4.90.0370.03716.20
5.4.80.0230.06316.37
5.4.70.0270.04316.38
5.4.60.0230.04316.37
5.4.50.0200.04716.19
5.4.40.0230.05716.36
5.4.30.0200.07016.38
5.4.20.0300.04316.18
5.4.10.0230.05316.45
5.4.00.0170.03715.78
5.3.290.0300.05314.50
5.3.280.0170.05014.69
5.3.270.0270.04014.56
5.3.260.0130.05714.66
5.3.250.0370.03314.55
5.3.240.0230.05714.56
5.3.230.0200.07314.54
5.3.220.0230.07014.40
5.3.210.0270.05014.45
5.3.200.0300.05714.59
5.3.190.0300.05714.52
5.3.180.0300.05714.39
5.3.170.0200.05014.65
5.3.160.0200.04314.51
5.3.150.0170.04314.39
5.3.140.0230.07014.42
5.3.130.0230.05314.64
5.3.120.0200.06314.38
5.3.110.0230.07314.39
5.3.100.0200.06013.90
5.3.90.0270.05713.96
5.3.80.0330.04314.11
5.3.70.0230.04013.97
5.3.60.0170.04013.79
5.3.50.0200.04313.79
5.3.40.0230.07013.99
5.3.30.0230.06013.76
5.3.20.0230.04013.52
5.3.10.0200.05713.43
5.3.00.0270.06313.47
5.2.170.0200.03712.43
5.2.160.0170.03712.43
5.2.150.0200.05012.43
5.2.140.0170.04312.43
5.2.130.0230.05312.43
5.2.120.0270.03312.43
5.2.110.0230.05312.43
5.2.100.0200.05012.43
5.2.90.0170.03312.43
5.2.80.0300.04312.43
5.2.70.0270.05012.43
5.2.60.0170.05712.43
5.2.50.0300.03312.43
5.2.40.0130.06012.43
5.2.30.0200.05012.43
5.2.20.0100.03312.43
5.2.10.0130.02712.43
5.2.00.0100.03012.43
5.1.60.0170.04312.43
5.1.50.0230.04312.43
5.1.40.0200.04712.43
5.1.30.0170.05312.43
5.1.20.0270.04712.43
5.1.10.0200.05012.43
5.1.00.0200.04012.43
5.0.50.0130.04012.43
5.0.40.0100.03712.43
5.0.30.0130.05012.43
5.0.20.0070.02712.43
5.0.10.0100.03312.43
5.0.00.0130.05712.43
4.4.90.0100.02012.43
4.4.80.0100.03312.43
4.4.70.0100.01312.43
4.4.60.0030.01712.43
4.4.50.0070.01712.43
4.4.40.0070.05312.43
4.4.30.0070.04012.43
4.4.20.0100.02012.43
4.4.10.0130.01312.43
4.4.00.0070.05312.43
4.3.110.0100.03312.43
4.3.100.0070.02712.43
4.3.90.0070.03312.43
4.3.80.0130.04712.43
4.3.70.0070.03712.43
4.3.60.0070.03012.43
4.3.50.0100.02712.43
4.3.40.0100.05012.43
4.3.30.0030.04012.43
4.3.20.0030.04012.43
4.3.10.0070.03712.43
4.3.00.0070.03712.43

preferences:
53.71 ms | 401 KiB | 5 Q