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.0170.00718.30
8.3.50.0140.00921.87
8.3.40.0000.01518.70
8.3.30.0070.00718.85
8.3.20.0050.00320.04
8.3.10.0070.01121.69
8.3.00.0060.00320.98
8.2.180.0160.00018.29
8.2.170.0190.00322.96
8.2.160.0140.00720.52
8.2.150.0040.00424.18
8.2.140.0120.00624.66
8.2.130.0060.00326.16
8.2.120.0090.00019.82
8.2.110.0090.00020.44
8.2.100.0040.00717.91
8.2.90.0070.00019.23
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0050.00517.64
8.2.50.0050.00318.07
8.2.40.0000.00819.82
8.2.30.0050.00318.06
8.2.20.0000.00817.73
8.2.10.0080.00018.04
8.2.00.0000.00717.58
8.1.280.0100.00525.92
8.1.270.0100.01018.70
8.1.260.0190.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.78
8.1.230.0080.00319.08
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0040.00418.54
8.1.160.0000.00721.92
8.1.150.0050.00218.72
8.1.140.0040.00419.18
8.1.130.0050.00317.83
8.1.120.0000.00717.39
8.1.110.0080.00017.35
8.1.100.0000.00717.27
8.1.90.0090.00017.34
8.1.80.0030.00517.38
8.1.70.0030.00317.36
8.1.60.0030.00617.52
8.1.50.0050.00317.39
8.1.40.0040.00417.39
8.1.30.0060.00317.67
8.1.20.0080.00017.52
8.1.10.0000.00717.50
8.1.00.0030.00917.42
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.13
8.0.260.0030.00317.10
8.0.250.0070.00016.84
8.0.240.0080.00016.98
8.0.230.0040.00416.98
8.0.220.0000.00716.86
8.0.210.0030.00316.75
8.0.200.0030.00716.91
8.0.190.0080.00016.94
8.0.180.0030.00516.91
8.0.170.0080.00016.79
8.0.160.0040.00416.95
8.0.150.0000.00716.66
8.0.140.0000.00816.90
8.0.130.0060.00013.29
8.0.120.0050.00316.80
8.0.110.0000.00716.89
8.0.100.0040.00416.71
8.0.90.0040.00416.91
8.0.80.0160.00716.88
8.0.70.0000.00716.90
8.0.60.0000.00716.82
8.0.50.0000.00816.70
8.0.30.0160.01017.00
8.0.20.0140.01017.40
8.0.10.0000.00717.05
8.0.00.0090.01016.78
7.4.330.0040.00315.03
7.4.320.0000.00716.42
7.4.300.0000.00616.57
7.4.290.0040.00416.36
7.4.280.0030.00316.43
7.4.270.0030.00516.32
7.4.260.0000.00716.48
7.4.250.0050.00316.49
7.4.240.0030.00516.41
7.4.230.0040.00416.31
7.4.220.0110.00716.52
7.4.210.0060.00916.60
7.4.200.0000.00716.45
7.4.160.0110.00516.59
7.4.150.0120.00617.40
7.4.140.0120.01017.86
7.4.130.0110.00816.50
7.4.120.0050.01416.54
7.4.110.0090.00916.29
7.4.100.0040.01516.50
7.4.90.0120.00616.28
7.4.80.0090.01416.43
7.4.70.0070.01616.44
7.4.60.0110.00716.43
7.4.50.0050.00316.35
7.4.40.0130.00416.02
7.4.30.0060.02316.40
7.4.00.0030.00714.69
7.3.330.0000.00513.06
7.3.320.0100.00512.90
7.3.310.0030.00316.32
7.3.300.0070.00016.05
7.3.290.0090.00616.20
7.3.280.0150.00416.18
7.3.270.0200.00317.40
7.3.260.0120.00616.23
7.3.250.0080.01216.19
7.3.240.0100.00716.31
7.3.230.0140.00316.39
7.3.210.0040.01316.38
7.3.200.0150.00616.09
7.3.190.0090.01216.24
7.3.180.0190.00516.11
7.3.170.0110.01116.27
7.3.160.0120.00616.13
7.2.330.0090.01216.59
7.2.320.0080.01016.61
7.2.310.0170.00316.70
7.2.300.0120.00616.36
7.2.290.0080.01116.77
7.1.70.0090.00317.24
7.1.60.0060.01919.46
7.1.50.0110.01116.79
7.1.00.0130.08022.27
7.0.200.0180.01114.84
7.0.140.0100.06022.00
7.0.60.0000.07720.01
7.0.50.0070.04017.90
7.0.40.0130.05020.14
7.0.30.0270.08320.34
7.0.20.0300.03020.08
7.0.10.0000.04720.16
7.0.00.0070.05020.30
5.6.280.0070.06721.02
5.6.210.0130.07020.50
5.6.200.0100.08018.08
5.6.190.0100.07720.28
5.6.180.3170.04020.60
5.6.170.0200.03720.51
5.6.160.0100.08020.48
5.6.150.0170.07318.14
5.6.140.0100.05718.11
5.6.130.0070.03718.11
5.6.120.0070.07721.11
5.6.110.0030.08720.96
5.6.100.0070.06021.00
5.6.90.0070.08721.02
5.6.80.0070.08020.39
5.6.70.3970.03720.36
5.5.350.0170.03320.43
5.5.340.0100.06317.89
5.5.330.0070.07320.14
5.5.320.0370.07320.17
5.5.310.0130.04720.21
5.5.300.0170.07718.02
5.5.290.0030.04317.97
5.5.280.0070.06020.97
5.5.270.0030.04320.79
5.5.260.0170.07020.96
5.5.250.0100.08320.77
5.5.240.0330.06720.34
5.4.450.0670.06319.25
5.4.440.0830.06019.62
5.4.430.0870.05719.57
5.4.420.0930.05719.63
5.4.410.1130.06719.19
5.4.400.0670.05319.31
5.4.390.0170.05018.58
5.4.380.0130.05318.63
5.4.370.0100.05718.47
5.4.360.0070.05718.50
5.4.350.0270.04318.58
5.4.340.0170.05018.72
5.4.320.0100.06318.67
5.4.310.0100.05718.50
5.4.300.0130.05318.63
5.4.290.0100.05718.68
5.4.280.0170.05318.71
5.4.270.0300.04318.73
5.4.260.0100.05718.74
5.4.250.0200.05018.63
5.4.240.0130.05318.44
5.4.230.0130.05018.45
5.4.220.0130.05318.70
5.4.210.0170.05718.69
5.4.200.0200.04716.61
5.4.190.0130.05718.54
5.4.180.0230.05018.69
5.4.170.0130.05718.56
5.4.160.0130.05718.52
5.4.150.0200.05018.55
5.4.140.0230.04716.32
5.4.130.0130.05316.18
5.4.120.0130.05716.07
5.4.110.0170.04716.09
5.4.100.0200.04316.17
5.4.90.0200.04716.35
5.4.80.0130.05316.22
5.4.70.0130.05316.35
5.4.60.0030.05716.30
5.4.50.0130.04716.20
5.4.40.0130.05316.23
5.4.30.0200.05316.10
5.4.20.0100.05716.23
5.4.10.0170.04316.20
5.4.00.0070.05315.72
5.3.290.0070.06014.55
5.3.280.0130.05014.68
5.3.270.0100.05714.60
5.3.260.0130.05314.69
5.3.250.0100.05714.53
5.3.240.0300.04014.64
5.3.230.0130.05314.48
5.3.220.0100.06014.65
5.3.210.0170.05314.46
5.3.200.0130.05314.63
5.3.190.0270.04014.61
5.3.180.0170.05014.54
5.3.170.0200.04714.45
5.3.160.0100.05714.55
5.3.150.0100.05714.58
5.3.140.0130.05014.64
5.3.130.0230.05314.46
5.3.120.0270.04314.48
5.3.110.0100.06314.48
5.3.100.0170.06314.10
5.3.90.0130.05713.98
5.3.80.0300.04313.95
5.3.70.0100.05714.10
5.3.60.0200.04714.00
5.3.50.0070.06014.03
5.3.40.0170.05313.94
5.3.30.0100.05313.91
5.3.20.0130.05013.76
5.3.10.0100.05313.61
5.3.00.0100.05313.61
5.2.170.0030.04711.19
5.2.160.0100.04011.13
5.2.150.0030.04711.09
5.2.140.0130.04311.15
5.2.130.0170.03311.14
5.2.120.0170.03711.14
5.2.110.0070.04711.01
5.2.100.0070.04711.02
5.2.90.0100.04311.11
5.2.80.0070.05011.13
5.2.70.0030.05311.23
5.2.60.0100.05010.96
5.2.50.0100.04310.97
5.2.40.0030.04710.99
5.2.30.0030.04710.96
5.2.20.0130.03711.05
5.2.10.0070.04010.92
5.2.00.0100.04010.74
5.1.60.0170.02710.10
5.1.50.0030.04310.11
5.1.40.0100.03310.01
5.1.30.0070.04010.45
5.1.20.0070.04010.48
5.1.10.0100.03310.11
5.1.00.0100.03710.12
5.0.50.0000.0378.54
5.0.40.0000.0338.52
5.0.30.0000.0508.25
5.0.20.0030.0308.21
5.0.10.0070.0308.22
5.0.00.0030.0478.27
4.4.90.0070.0205.82
4.4.80.0100.0175.91
4.4.70.0030.0235.88
4.4.60.0030.0235.88
4.4.50.0170.0135.95
4.4.40.0030.0435.91
4.4.30.0030.0235.89
4.4.20.0070.0205.95
4.4.10.0070.0205.93
4.4.00.0100.0275.92
4.3.110.0000.0275.89
4.3.100.0100.0175.83
4.3.90.0070.0175.79
4.3.80.0030.0435.86
4.3.70.0000.0305.84
4.3.60.0130.0205.82
4.3.50.0070.0235.79
4.3.40.0030.0475.82
4.3.30.0070.0175.07
4.3.20.0030.0205.07
4.3.10.0030.0205.07
4.3.00.0300.01014.62

preferences:
67.23 ms | 401 KiB | 5 Q