3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsn = '[ { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://www.nilsattv.com:8080/live/sdcdn/7Z2SVfUhNl/478.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/703\"", "alias": "BEIN-SPORTS-HD-3" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://www.nilsattv.com:8080/live/sdcdn/7Z2SVfUhNl/1937.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/704\"", "alias": "BEIN-SPORTS-HD-4" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://hdtv2017.cf:8080/live/h8wUlYKJJ2/dda8ZHEUu3/145.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/710\"", "alias": "TIVIBU-SPOR-4-HD" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://hdtv2017.cf:8080/live/h8wUlYKJJ2/dda8ZHEUu3/143.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/708\"", "alias": "TIVIBU-SPOR-2-HD" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://www.nilsattv.com:8080/live/sdcdn/7Z2SVfUhNl/477.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/707\"", "alias": "S-SPORT-HD" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://www.nilsattv.com:8080/live/sdcdn/7Z2SVfUhNl/470.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/702\"", "alias": "BEIN-SPORTS-HD-2" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://hdtv2017.cf:8080/live/h8wUlYKJJ2/dda8ZHEUu3/144.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/709\"", "alias": "TIVIBU-SPOR-3-HD" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://www.nilsattv.com:8080/live/sdcdn/7Z2SVfUhNl/452.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/701\"", "alias": "BEIN-SPORTS-HD-1" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://hdtv2017.cf:8080/live/h8wUlYKJJ2/dda8ZHEUu3/129.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/705\"", "alias": "BEIN-SPORTS-MAX-1-HD" }, { "restart_interval": 15, "restart_if_no_output_interval": 10, "autorestart": true, "restart_if_no_output": true, "command": "ffmpeg -threads 2 -i \"http://hdtv2017.cf:8080/live/h8wUlYKJJ2/dda8ZHEUu3/128.ts\" -c:a aac -c:v libx264 -crf 32 -f flv -flags +global_header -flags +qscale -force_key_frames \"expr:eq(mod(n,6),0)\" -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryslow -profile:a mpeg2_aac_low -profile:v high -pix_fmt yuv420p -r:v 30 -s 640x360 -strict experimental -sws_flags fast_bilinear -tune zerolatency -v verbose -x264opts rc-lookahead=60:keyint=120:min-keyint=60 -y \"rtmp://50.7.93.218:1935/origin/706\"", "alias": "BEIN-SPORTS-MAX-2-HD" } ]'; $jsn = json_decode( $jsn ); $nw = []; foreach ( $jsn as $itm ) { $cmd = $itm->command; preg_match( '/\-i\s\"(.*?)\"/i', $cmd, $input ); $input = end( $input ); preg_match( '/\-y\s\"(.*?)\"/i', $cmd, $output ); $output = end( $output ); $cmd_nw = 'ffmpeg -i "%s" -c:a aac -c:v libx264 -crf 28 -f flv -flags +global_header -flags +qscale -g 60 -hide_banner -level 4.0 -movflags +faststart -preset veryfast -profile:v high -pix_fmt yuv420p -r:v 30 -s 1024x576 -strict experimental -y "%s"'; $cmd_nw = sprintf( $cmd_nw, $input, $output ); $itm->command = $cmd_nw; $nw[] = $itm; } echo json_encode($nw,JSON_PRETTY_PRINT);

Abusive script

This script was stopped while abusing our resources

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.110.0040.01220.94
8.3.100.0030.00624.06
8.3.90.0180.00026.77
8.3.80.0030.00718.52
8.3.70.0170.00317.00
8.3.60.0120.00918.43
8.3.50.0120.00516.90
8.3.40.0120.00319.18
8.3.30.0150.00618.74
8.3.20.0040.00420.39
8.3.10.0000.00823.71
8.3.00.0080.00019.80
8.2.230.0030.00622.58
8.2.220.0000.01037.54
8.2.210.0000.01526.77
8.2.200.0110.00416.75
8.2.190.0070.01116.72
8.2.180.0090.00616.81
8.2.170.0070.00722.96
8.2.160.0060.00919.36
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00019.46
8.2.120.0030.00526.35
8.2.110.0030.00622.33
8.2.100.0100.00318.16
8.2.90.0080.00018.47
8.2.80.0080.00018.28
8.2.70.0050.00317.88
8.2.60.0000.00817.75
8.2.50.0080.00017.84
8.2.40.0040.00420.60
8.2.30.0030.00719.30
8.2.20.0030.00618.23
8.2.10.0040.00418.16
8.2.00.0000.00718.33
8.1.290.0070.00330.84
8.1.280.0120.00925.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0080.00023.84
8.1.230.0090.00322.67
8.1.220.0080.00017.74
8.1.210.0080.00019.03
8.1.200.0030.00617.60
8.1.190.0000.00817.47
8.1.180.0080.00018.10
8.1.170.0000.00818.94
8.1.160.0070.00019.01
8.1.150.0000.00720.26
8.1.140.0070.00017.80
8.1.130.0000.00719.00
8.1.120.0060.00317.60
8.1.110.0040.00417.67
8.1.100.0000.00817.69
8.1.90.0000.00717.53
8.1.80.0040.00417.66
8.1.70.0070.00017.69
8.1.60.0060.00317.80
8.1.50.0030.00717.62
8.1.40.0030.00617.74
8.1.30.0040.00417.86
8.1.20.0050.00317.73
8.1.10.0080.00017.70
8.1.00.0040.00417.62
8.0.300.0040.00419.89
8.0.290.0080.00016.74
8.0.280.0030.00618.41
8.0.270.0070.00017.32
8.0.260.0030.00317.02
8.0.250.0000.00817.07
8.0.240.0000.00717.18
8.0.230.0050.00217.16
8.0.220.0040.00417.07
8.0.210.0070.00016.98
8.0.200.0030.00317.10
8.0.190.0000.00717.16
8.0.180.0000.00717.13
8.0.170.0080.00017.06
8.0.160.0070.00017.21
8.0.150.0070.00016.98
8.0.140.0040.00417.04
8.0.130.0030.00313.57
8.0.120.0040.00417.02
8.0.110.0040.00417.04
8.0.100.0080.00017.07
8.0.90.0040.00417.14
8.0.80.0060.01417.18
8.0.70.0080.00017.00
8.0.60.0000.00816.95
8.0.50.0000.00816.91
8.0.30.0110.00717.21
8.0.20.0110.00817.44
8.0.10.0050.00217.18
8.0.00.0100.01017.05
7.4.330.0000.00515.55
7.4.320.0060.00016.85
7.4.300.0060.00016.83
7.4.290.0040.00416.88
7.4.280.0040.00416.67
7.4.270.0000.00716.83
7.4.260.0070.00016.68
7.4.250.0000.00716.72
7.4.240.0040.00416.88
7.4.230.0040.00416.90
7.4.220.0000.00716.51
7.4.210.0060.00916.72
7.4.200.0050.00316.70
7.4.160.0090.00916.74
7.4.150.0060.01117.40
7.4.140.0110.00617.86
7.4.130.0130.00416.91
7.4.120.0070.01116.73
7.3.330.0030.00313.28
7.3.320.0030.00313.45
7.3.310.0070.00016.47
7.3.300.0000.00716.50
7.3.290.0090.00616.44
7.3.280.0090.00716.50
7.3.270.0130.01317.40
7.3.260.0110.01316.79
7.3.240.0070.01116.51
7.2.20.0140.01118.39

preferences:
154.53 ms | 403 KiB | 5 Q