3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: application/json'); $rows = 10; $tp_chan=2; $tp_profi=913; $tp_sec_start=1877; $ts_sec_start=2106; $server = 'http://200.76.77.237:80/LIVE/H01/CANAL'.$tp_chan.'/PROFILE03-'.$tp_profi.'/'; $count = 0; $nextsecPlus = 4; $ignoreFive=false; $ignoreFive2=false; $today = date('Ymd'); echo "#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:".$tp_profi."0".$tp_sec_start."\n"; for($i = 0; $i < $rows; $i++) { if($nextsecPlus==4){ if($ignoreFive==true && $ignoreFive2==false){$nextsecPlus = $nextsecPlus;} $ts_sec_start = $ts_sec_start+$nextsecPlus; $ts = /*$nextsecPlus.'A_'.*/$server.$tp_sec_start.'-'.$today.'T'.$ts_sec_start.'.ts'; if($nextsecPlus==5) { $nextsecPlus=4; $ignoreFive2=true; } } else if($nextsecPlus == 5 && $ignoreFive==false){ $ts_sec_start = $ts_sec_start+5; $ts = /*$nextsecPlus.'B_'.*/$server.$tp_sec_start.'-'.$today.'T'.$ts_sec_start.'.ts'; $nextsecPlus=3; } else if($nextsecPlus == 3){ $ts_sec_start = $ts_sec_start+$nextsecPlus; $ts = /*$nextsecPlus.'C_'.*/$server.$tp_sec_start.'-'.$today.'T'.$ts_sec_start.'.ts'; $nextsecPlus=4; $ignoreFive = true; } $count++; if($count >= 5 && $ignoreFive==false && $nextsecPlus ==4){ $nextsecPlus = 5; } $tp_sec_start++; echo "#EXTINF:4.004,\n".$ts."\n"; } ?>

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.80.0040.00418.56
8.3.70.0000.01518.17
8.3.60.0040.01118.31
8.3.50.0140.00722.04
8.3.40.0070.00718.59
8.3.30.0060.01018.56
8.3.20.0080.00020.39
8.3.10.0040.00420.71
8.3.00.0000.00820.63
8.2.200.0090.00016.88
8.2.190.0110.01116.63
8.2.180.0110.01118.26
8.2.170.0140.00022.96
8.2.160.0060.00820.44
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00019.48
8.2.120.0040.00426.35
8.2.110.0030.00722.18
8.2.100.0040.00817.59
8.2.90.0030.00519.22
8.2.80.0060.00317.97
8.2.70.0000.00917.63
8.2.60.0050.00517.90
8.2.50.0060.00318.09
8.2.40.0000.00820.60
8.2.30.0000.00719.54
8.2.20.0040.00417.66
8.2.10.0050.00218.21
8.2.00.0000.00718.14
8.1.290.0040.00418.88
8.1.280.0170.00325.92
8.1.270.0000.00823.99
8.1.260.0000.00728.09
8.1.250.0030.00528.09
8.1.240.0060.00319.28
8.1.230.0110.00017.89
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0060.00317.48
8.1.180.0050.00318.10
8.1.170.0000.00818.70
8.1.160.0040.00420.94
8.1.150.0000.00718.99
8.1.140.0040.00419.65
8.1.130.0030.00317.79
8.1.120.0070.00017.65
8.1.110.0030.00517.52
8.1.100.0040.00417.63
8.1.90.0030.00517.50
8.1.80.0030.00517.53
8.1.70.0040.00417.64
8.1.60.0080.00017.70
8.1.50.0030.00517.56
8.1.40.0000.00817.60
8.1.30.0000.00817.60
8.1.20.0040.00417.75
8.1.10.0020.00517.51
8.1.00.0040.00417.46
8.0.300.0060.00318.77
8.0.290.0030.00616.75
8.0.280.0000.00718.58
8.0.270.0090.00017.41
8.0.260.0030.00317.35
8.0.250.0030.00317.18
8.0.240.0070.00017.12
8.0.230.0040.00417.14
8.0.220.0030.00317.03
8.0.210.0070.00016.97
8.0.200.0030.00316.99
8.0.190.0050.00217.09
8.0.180.0000.00716.96
8.0.170.0000.00717.06
8.0.160.0040.00416.95
8.0.150.0070.00416.89
8.0.140.0000.00816.91
8.0.130.0000.00513.34
8.0.120.0030.00516.92
8.0.110.0040.00416.99
8.0.100.0050.00216.78
8.0.90.0000.00716.77
8.0.80.0090.00617.00
8.0.70.0080.00017.08
8.0.60.0000.00716.79
8.0.50.0040.00417.01
8.0.30.0090.00617.14
8.0.20.0110.00717.40
8.0.10.0040.00417.28
8.0.00.0150.00717.02
7.4.330.0000.00515.09
7.4.320.0000.00616.69
7.4.300.0060.00016.50
7.4.290.0070.00016.67
7.4.280.0060.00316.69
7.4.270.0070.00016.49
7.4.260.0000.00513.29
7.4.250.0000.00716.66
7.4.240.0000.00816.66
7.4.230.0030.00316.59
7.4.220.0120.00916.72
7.4.210.0000.01816.76
7.4.200.0040.00416.45
7.4.160.0110.00416.52
7.4.150.0140.00317.40
7.4.140.0140.00517.86
7.4.130.0050.01316.57
7.4.120.0110.00716.65
7.4.110.0060.01716.63
7.4.100.0080.01116.79
7.4.90.0080.00816.78
7.4.80.0120.00719.39
7.4.70.0070.01016.75
7.4.60.0040.01216.60
7.4.50.0070.01016.73
7.4.40.0030.01316.82
7.4.30.0110.01116.78
7.4.00.0030.01215.25
7.3.330.0000.00613.17
7.3.320.0050.00013.27
7.3.310.0030.00316.50
7.3.300.0030.00316.25
7.3.290.0090.00916.40
7.3.280.0080.01016.41
7.3.270.0140.00317.40
7.3.260.0130.00316.60
7.3.250.0110.00916.59
7.3.240.0100.00916.55
7.3.230.0110.00716.66
7.3.210.0110.01016.58
7.3.200.0030.01319.39
7.3.190.0100.01116.59
7.3.180.0100.00716.63
7.3.170.0110.01316.43
7.3.160.0060.01116.54
7.3.10.0070.00716.82
7.3.00.0070.00716.73
7.2.330.0140.00416.84
7.2.320.0150.00716.86
7.2.310.0140.00316.53
7.2.300.0040.01416.77
7.2.290.0080.01016.83
7.2.130.0050.01017.03
7.2.120.0140.00317.05
7.2.110.0130.00716.76
7.2.100.0120.00416.75
7.2.90.0060.00816.98
7.2.80.0050.00916.85
7.2.70.0000.01416.88
7.2.60.0030.01116.88
7.2.50.0030.00617.07
7.2.40.0000.00917.20
7.2.30.0030.00917.09
7.2.20.0030.00816.92
7.2.10.0030.00517.00
7.2.00.0080.00618.25
7.1.250.0120.00015.99
7.1.200.0070.00315.93
7.1.100.0100.00516.44
7.1.70.0030.00717.43
7.1.60.0130.01019.27
7.1.50.0000.01117.26
7.1.00.0000.08022.54
7.0.200.0000.01016.77
7.0.80.0030.04719.91
7.0.70.0070.04319.88
7.0.60.0070.08719.82
7.0.50.0030.08320.17
7.0.40.0030.06020.15
7.0.30.0070.05320.03
7.0.20.0170.05720.13
7.0.10.0130.07720.11
7.0.00.0000.05720.03
5.6.280.0030.07020.86
5.6.230.0130.08020.68
5.6.220.0030.04720.74
5.6.210.0100.07020.50
5.6.200.0130.04721.18
5.6.190.0070.08321.08
5.6.180.0070.06020.95
5.6.170.0130.08021.02
5.6.160.0130.07321.03
5.6.150.0130.04021.00
5.6.140.0130.04321.03
5.6.130.0030.06720.94
5.6.120.0100.08021.02
5.6.110.0130.06721.01
5.6.100.0100.08021.05
5.6.90.0130.07020.91
5.6.80.0000.04720.34
5.6.70.0100.07720.47
5.6.60.0100.07320.39
5.6.50.0000.05020.46
5.6.40.0130.06720.45
5.6.30.0070.07320.44
5.6.20.0100.06720.40
5.6.10.0070.07720.53
5.6.00.0170.05720.45
5.5.370.0100.07020.36
5.5.360.0070.04320.41
5.5.350.0070.05320.43
5.5.340.0070.07320.77
5.5.330.0030.09020.77
5.5.320.0130.07720.81
5.5.310.0100.06720.84
5.5.300.0170.08020.93
5.5.290.0030.04720.77
5.5.280.0030.08720.86
5.5.270.0070.07720.88
5.5.260.0100.07320.90
5.5.250.0100.04020.73
5.5.240.0130.07320.26
5.5.230.0030.07720.18
5.5.220.0070.07020.30
5.5.210.0100.05720.30
5.5.200.0070.03720.18
5.5.190.0100.07020.00
5.5.180.0170.07320.27
5.5.160.0130.07720.26
5.5.150.0070.04320.15
5.5.140.0100.04720.25
5.5.130.0030.06720.27
5.5.120.0170.06720.27
5.5.110.0070.08720.17
5.5.100.0170.06720.17
5.5.90.0130.07020.12
5.5.80.0100.08020.16
5.5.70.0070.07319.97
5.5.60.0100.07320.06
5.5.50.0070.07320.11
5.5.40.0030.06020.14
5.5.30.0170.07020.04
5.5.20.0000.08020.19
5.5.10.0100.05320.03
5.5.00.0130.07320.03

preferences:
28.12 ms | 401 KiB | 5 Q