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)) { 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)) { 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.0160.00316.88
8.3.50.0100.01322.09
8.3.40.0140.00718.67
8.3.30.0090.00619.30
8.3.20.0040.01120.00
8.3.10.0060.00321.91
8.3.00.0000.01019.00
8.2.180.0110.00418.17
8.2.170.0100.00722.96
8.2.160.0070.01020.52
8.2.150.0000.01424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.76
8.2.110.0040.00420.47
8.2.100.0040.00718.20
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0000.00820.01
8.2.30.0080.00018.05
8.2.20.0040.00417.64
8.2.10.0040.00418.05
8.2.00.0000.00717.66
8.1.280.0100.01025.92
8.1.270.0080.00019.01
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00623.80
8.1.230.0040.00819.21
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.25
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0080.00018.46
8.1.160.0000.00722.06
8.1.150.0000.00818.85
8.1.140.0000.00819.15
8.1.130.0000.00717.92
8.1.120.0030.00317.35
8.1.110.0080.00017.44
8.1.100.0030.00317.30
8.1.90.0100.00017.52
8.1.80.0040.00417.52
8.1.70.0000.00717.33
8.1.60.0040.00417.61
8.1.50.0030.00517.52
8.1.40.0030.00517.50
8.1.30.0040.00417.68
8.1.20.0060.00317.55
8.1.10.0040.00417.52
8.1.00.0030.00717.34
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0040.00417.17
8.0.260.0000.00617.27
8.0.250.0030.00317.00
8.0.240.0030.00616.93
8.0.230.0080.00016.96
8.0.220.0070.00016.82
8.0.210.0000.00716.88
8.0.200.0040.00417.00
8.0.190.0040.00416.92
8.0.180.0050.00316.81
8.0.170.0020.00516.98
8.0.160.0000.00716.87
8.0.150.0040.00416.73
8.0.140.0030.00616.83
8.0.130.0030.00313.31
8.0.120.0080.00016.84
8.0.110.0050.00316.79
8.0.100.0050.00316.77
8.0.90.0000.00716.75
8.0.80.0030.01316.85
8.0.70.0000.00716.77
8.0.60.0000.00816.68
8.0.50.0070.00016.89
8.0.30.0070.01416.88
8.0.20.0090.01217.40
8.0.10.0080.00016.83
8.0.00.0100.01016.69
7.4.330.0000.00615.03
7.4.320.0030.00316.50
7.4.300.0030.00316.61
7.4.290.0000.00716.49
7.4.280.0000.00816.62
7.4.270.0040.00416.52
7.4.260.0050.00516.54
7.4.250.0000.00816.57
7.4.240.0020.00516.62
7.4.230.0000.00716.56
7.4.220.0130.01316.61
7.4.210.0090.00616.61
7.4.200.0000.00716.39
7.4.160.0040.01116.41
7.4.150.0070.01417.40
7.4.140.0070.01117.86
7.4.130.0040.01316.41
7.4.120.0120.00516.54
7.4.110.0170.00716.45
7.4.100.0090.01316.64
7.4.90.0100.01416.48
7.4.80.0090.00916.42
7.4.70.0090.00616.51
7.4.60.0100.00716.50
7.4.50.0040.00416.31
7.4.40.0080.00816.70
7.4.30.0040.01416.36
7.4.00.0130.00315.07
7.3.330.0050.00013.27
7.3.320.0110.00313.17
7.3.310.0030.00616.39
7.3.300.0040.00416.19
7.3.290.0110.00616.32
7.3.280.0060.00916.34
7.3.270.0060.01217.40
7.3.260.0130.01016.58
7.3.250.0110.00616.44
7.3.240.0130.00316.39
7.3.230.0130.00316.41
7.3.210.0000.01716.37
7.3.200.0110.00719.39
7.3.190.0110.00516.59
7.3.180.0100.00716.50
7.3.170.0080.01216.51
7.3.160.0080.00816.66
7.3.120.0030.00614.77
7.3.110.0070.00414.85
7.3.100.0090.00914.89
7.3.90.0000.00914.82
7.3.80.0040.00714.84
7.3.70.0000.01114.58
7.3.60.0110.00314.95
7.3.50.0000.01514.84
7.3.40.0070.00714.79
7.3.30.0040.00814.93
7.3.20.0100.00616.55
7.3.10.0030.00616.66
7.3.00.0070.01016.61
7.2.330.0060.01216.47
7.2.320.0100.00616.75
7.2.310.0100.01616.63
7.2.300.0120.00616.38
7.2.290.0080.00816.82
7.2.240.0090.00915.28
7.2.230.0030.01014.75
7.2.220.0000.01315.28
7.2.210.0120.00015.28
7.2.200.0110.00715.17
7.2.190.0070.00715.15
7.2.180.0030.01215.10
7.2.170.0100.00315.15
7.2.160.0040.00814.89
7.2.150.0080.00816.78
7.2.140.0100.00316.90
7.2.130.0120.00316.82
7.2.120.0060.00616.88
7.2.110.0070.00716.98
7.2.100.0030.01017.05
7.2.90.0070.01016.96
7.2.80.0060.00916.64
7.2.70.0060.01017.16
7.2.60.0050.00916.79
7.2.50.0060.01016.95
7.2.40.0090.00616.82
7.2.30.0060.00917.03
7.2.20.0070.01017.01
7.2.10.0030.01317.06
7.2.00.0080.00618.18
7.1.330.0090.00415.80
7.1.320.0110.00015.54
7.1.310.0030.00915.75
7.1.300.0100.00715.85
7.1.290.0060.00615.82
7.1.280.0110.00315.82
7.1.270.0030.01015.84
7.1.260.0120.00015.99
7.1.250.0000.01416.02
7.1.200.0080.00415.92
7.1.100.0030.00818.29
7.1.70.0090.00017.09
7.1.60.0070.01719.46
7.1.50.0100.01016.79
7.1.00.0000.09022.28
7.0.200.0200.00614.67
7.0.140.0100.07722.02
7.0.60.0070.06019.95
7.0.50.0000.04317.86
7.0.40.0030.04720.12
7.0.30.0170.07320.30
7.0.20.0270.07720.13
7.0.10.0070.07020.30
7.0.00.0270.06020.12
5.6.280.0100.06721.12
5.6.210.0070.03720.47
5.6.200.0030.06318.17
5.6.190.0100.05020.56
5.6.180.0430.05020.77
5.6.170.0270.04020.48
5.6.160.0000.04320.71
5.6.150.0030.09018.18
5.6.140.0100.07018.18
5.6.130.0030.05018.14
5.6.120.0030.06021.15
5.6.110.0030.07320.96
5.6.100.0170.07320.99
5.6.90.0130.06020.97
5.6.80.0130.05720.38
5.5.350.0270.06720.28
5.5.340.0100.07017.98
5.5.330.0000.09320.49
5.5.320.0230.05020.51
5.5.310.0370.07020.19
5.5.300.0070.05317.98
5.5.290.0070.06317.92
5.5.280.0070.06720.77
5.5.270.0030.05320.86
5.5.260.0170.07020.79
5.5.250.0070.06320.55
5.5.240.0030.06320.16
5.4.450.0700.06319.54
5.4.440.0700.06019.56
5.4.430.0170.04719.49
5.4.420.0200.05019.30
5.4.410.0100.05318.88
5.4.400.0100.05318.61
5.4.390.0130.05318.72
5.4.380.0170.05018.59
5.4.370.0100.05718.54
5.4.360.0100.05718.70
5.4.350.0130.05718.72
5.4.340.0200.06018.67
5.4.320.0170.05318.52
5.4.310.0200.04718.53
5.4.300.0070.06018.50
5.4.290.0130.05318.68
5.4.280.0030.06018.69
5.4.270.0200.05018.66
5.4.260.0130.05018.50
5.4.250.0130.05318.75
5.4.240.0200.04718.50
5.4.230.0070.05718.69
5.4.220.0100.05718.46
5.4.210.0200.04718.67
5.4.200.0130.04716.54
5.4.190.0170.04718.52
5.4.180.0130.05318.68
5.4.170.0030.06318.66
5.4.160.0170.04718.57
5.4.150.0130.05318.69
5.4.140.0130.05716.34
5.4.130.0230.04016.23
5.4.120.0170.06716.17
5.4.110.0200.04716.07
5.4.100.0130.05016.23
5.4.90.0030.06016.03
5.4.80.0230.05716.12
5.4.70.0130.06016.15
5.4.60.0070.05716.21
5.4.50.0170.04716.24
5.4.40.0200.05016.28
5.4.30.0100.05316.14
5.4.20.0170.05016.17
5.4.10.0100.05316.22
5.4.00.0130.04715.61
5.3.290.0200.05014.68
5.3.280.0200.04714.58
5.3.270.0130.05314.59
5.3.260.0270.04314.52
5.3.250.0170.04714.58
5.3.240.0100.05714.60
5.3.230.0200.04314.58
5.3.220.0100.06014.58
5.3.210.0130.05314.64
5.3.200.0170.04714.47
5.3.190.0130.06014.59
5.3.180.0130.05314.54
5.3.170.0230.04014.49
5.3.160.0170.05014.62
5.3.150.0130.05314.54
5.3.140.0200.04314.53
5.3.130.0200.04714.44
5.3.120.0270.04314.46
5.3.110.0100.05714.55
5.3.100.0170.05314.02
5.3.90.0100.05314.03
5.3.80.0100.05314.00
5.3.70.0200.04713.93
5.3.60.0170.05013.91
5.3.50.0130.05013.92
5.3.40.0170.04714.02
5.3.30.0170.04313.90
5.3.20.0030.05713.66
5.3.10.0130.04713.64
5.3.00.0070.05713.51
5.2.170.0100.04711.17
5.2.160.0100.04011.08
5.2.150.0170.04011.26
5.2.140.0030.05011.12
5.2.130.0100.04311.03
5.2.120.0070.04711.09
5.2.110.0070.04711.08
5.2.100.0230.03011.13
5.2.90.0100.04311.05
5.2.80.0130.04011.01
5.2.70.0130.04011.08
5.2.60.0100.04010.97
5.2.50.0100.04011.14
5.2.40.0030.04711.02
5.2.30.0030.04711.09
5.2.20.0070.04010.94
5.2.10.0130.03310.91
5.2.00.0070.04310.67
5.1.60.0030.0379.97
5.1.50.0130.03010.06
5.1.40.0100.03310.06
5.1.30.0100.03710.43
5.1.20.0070.04010.43
5.1.10.0100.03310.06
5.1.00.0030.04710.05
5.0.50.0000.0338.64
5.0.40.0070.0308.39
5.0.30.0070.0438.25
5.0.20.0030.0308.18
5.0.10.0170.0208.17
5.0.00.0030.0438.14
4.4.90.0030.0235.88
4.4.80.0000.0335.90
4.4.70.0100.0275.87
4.4.60.0070.0205.89
4.4.50.0070.0205.93
4.4.40.0070.0335.86
4.4.30.0030.0235.89
4.4.20.0070.0205.95
4.4.10.0030.0235.97
4.4.00.0100.0405.89
4.3.110.0130.0235.80
4.3.100.0000.0275.84
4.3.90.0070.0205.83
4.3.80.0100.0305.82
4.3.70.0030.0305.80
4.3.60.0030.0235.90
4.3.50.0030.0235.80
4.3.40.0030.0335.79
4.3.30.0070.0205.08
4.3.20.0000.0235.08
4.3.10.0070.0235.08
4.3.00.0100.0276.74

preferences:
46.45 ms | 401 KiB | 5 Q