3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<EOT General Complete name : G:\VIDEO_TS\VTS_04_1.VOB Format : MPEG-PS File size : 1 024 MiB Duration : 29 min 25 s Overall bit rate mode : Variable Overall bit rate : 4 867 kb/s Video ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings : CustomMatrix / BVOP Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=15 Format settings, picture structure : Frame Duration : 29 min 25 s Bit rate mode : Variable Bit rate : 3 650 kb/s Maximum bit rate : 8 500 kb/s Width : 720 pixels Height : 480 pixels Display aspect ratio : 16:9 Frame rate : 29.970 (30000/1001) FPS Standard : NTSC Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Compression mode : Lossy Bits/(Pixel*Frame) : 0.352 Time code of first frame : 00:59:59:15 Time code source : Group of pictures header GOP, Open/Closed : Closed Stream size : 768 MiB (75%) Audio #1 ID : 189 (0xBD)-128 (0x80) Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Muxing mode : DVD-Video Duration : 29 min 24 s Bit rate mode : Constant Bit rate : 448 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Stream size : 94.2 MiB (9%) Service kind : Complete Main Audio #2 ID : 189 (0xBD)-129 (0x81) Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Muxing mode : DVD-Video Duration : 29 min 24 s Bit rate mode : Constant Bit rate : 448 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Stream size : 94.2 MiB (9%) Service kind : Complete Main Audio #3 ID : 189 (0xBD)-130 (0x82) Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Muxing mode : DVD-Video Duration : 29 min 24 s Bit rate mode : Constant Bit rate : 224 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Stream size : 47.1 MiB (5%) Service kind : Complete Main Text ID : 189 (0xBD)-33 (0x21) Format : RLE Format/Info : Run-length encoding Muxing mode : DVD-Video Delay relative to video : 7 s 874 ms General Complete name : G:\VIDEO_TS\VTS_04_0.IFO Format : DVD Video Format profile : Program File size : 68.0 KiB Duration : 1 h 37 min Overall bit rate mode : Variable Overall bit rate : 95 b/s Video ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Duration : 1 h 37 min Bit rate mode : Variable Width : 720 pixels Height : 480 pixels Display aspect ratio : 16:9 Frame rate : 29.970 (29970/1000) FPS Standard : NTSC Compression mode : Lossy Duration_Source : General_Duration Audio #1 ID : 128 (0x80) Format : AC-3 Format/Info : Audio Coding 3 Duration : 1 h 37 min Channel(s) : 2 channels Sampling rate : 48.0 kHz Compression mode : Lossy Language : Chinese Duration_Source : General_Duration Audio #2 ID : 129 (0x81) Format : AC-3 Format/Info : Audio Coding 3 Duration : 1 h 37 min Channel(s) : 6 channels Sampling rate : 48.0 kHz Compression mode : Lossy Language : Chinese Duration_Source : General_Duration Audio #3 ID : 130 (0x82) Format : AC-3 Format/Info : Audio Coding 3 Duration : 1 h 37 min Channel(s) : 2 channels Sampling rate : 48.0 kHz Compression mode : Lossy Language : Portuguese Duration_Source : General_Duration Text #1 ID : 32 (0x20) Format : RLE Format/Info : Run-length encoding Bit depth : 2 bits Language : Portuguese Text #2 ID : 33 (0x21) Format : RLE Format/Info : Run-length encoding Bit depth : 2 bits Menu Duration : 1 h 37 min 00:00:00.000 : Chapter 1 00:07:10.500 : Chapter 2 00:14:26.500 : Chapter 3 00:23:42.000 : Chapter 4 00:31:12.000 : Chapter 5 00:39:38.000 : Chapter 6 00:46:15.500 : Chapter 7 00:55:23.500 : Chapter 8 01:02:27.500 : Chapter 9 01:10:12.500 : Chapter 10 01:19:13.500 : Chapter 11 01:26:13.000 : Chapter 12 01:37:46.200 : Chapter 13 List (Audio) : 0 / 1 / 2 List (Subtitles 4/3) : 0 / 0 List (Subtitles Wide) : 0 / 1 List (Subtitles Letterbox) : 0 / 1 List (Subtitles Pan&Scan) : 0 / 1 General Unique ID : 265651434810034235117589437423295755026 (0xC7DA9AF5666AD1527A66985978717312) Complete name : Aladdin.1992.2160p.UHD.BluRay.x265-TERMiNAL.DUAL-Lannister.mkv Format : Matroska Format version : Version 4 File size : 8.02 GiB Duration : 1 h 30 min Overall bit rate mode : Variable Overall bit rate : 12.7 Mb/s Encoded date : UTC 2019-09-12 17:17:31 Writing application : mkvmerge v22.0.0 ('At The End Of The World') 64-bit Writing library : libebml v1.3.5 + libmatroska v1.4.8 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : V_MPEGH/ISO/HEVC Duration : 1 h 30 min Bit rate : 6 532 kb/s Width : 3 584 pixels Height : 2 160 pixels Display aspect ratio : 5:3 Frame rate mode : Constant Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Bits/(Pixel*Frame) : 0.035 Stream size : 4.14 GiB (52%) Writing library : x265 3.1+11-de920e0a3183:[Windows][GCC 6.3.0][64 bit] 10bit Encoding settings : cpuid=1176575 / frame-threads=6 / numa-pools=36 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3584x2160 / interlace=0 / total-frames=130417 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=1 / keyint=24 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=17.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,20)cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 Default : Yes Forced : No Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0020 cd/m2, max: 1000 cd/m2 Audio #1 ID : 2 Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : A_AC3 Duration : 1 h 30 min Bit rate mode : Constant Bit rate : 640 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Bit depth : 16 bits Compression mode : Lossy Stream size : 415 MiB (5%) Title : by Lannister Language: Portuguese Service kind : Complete Main Default : Yes Forced : Yes Audio #2 ID : 3 Format : MLP FBA 16-ch Format/Info : Meridian Lossless Packing FBA with 16-channel presentation Commercial name : Dolby TrueHD with Dolby Atmos Codec ID : A_TRUEHD Duration : 1 h 30 min Bit rate mode : Variable Bit rate : 4 768 kb/s Maximum bit rate : 6 816 kb/s Channel(s) : 8 channels Channel layout : L R C LFE Ls Rs Lb Rb Sampling rate : 48.0 kHz Frame rate : 1 200.000 FPS (40 SPF) Compression mode : Lossless Stream size : 3.02 GiB (38%) Language : English Default : No Forced : No Number of dynamic objects : 13 Bed channel count : 1 channel Bed channel configuration : LFE Audio #3 ID : 4 Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : A_AC3 Duration : 1 h 30 min Bit rate mode : Constant Bit rate : 640 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Bit depth : 16 bits Compression mode : Lossy Stream size : 415 MiB (5%) Language : English Service kind : Complete Main Default : No Forced : No Text ID : 5 Format : PGS Muxing mode : zlib Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Duration : 1 h 29 min Bit rate : 35.9 kb/s Count of elements : 2352 Stream size : 23.0 MiB (0%) Language : Portuguese Default : No Forced : No General Unique ID : 96295411837011032641642823181481344850 (0x4871D25C0188DBA1F9468FCC41F8FF52) Complete name : Coração Valente 1995 4k 2160p Dual Audio.mkv Format : Matroska Format version : Version 4 File size : 45.7 GiB Duration : 2 h 57 min Overall bit rate : 36.9 Mb/s Movie name : Coração Valente Encoded date : UTC 2019-09-24 12:13:44 Writing application : mkvmerge v37.0.0 ('Leave It') 64-bit Writing library : libebml v1.3.9 + libmatroska v1.5.2 Cover : Yes Attachments : cover3.jpeg Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : V_MPEGH/ISO/HEVC Duration : 2 h 57 min Bit rate : 36.0 Mb/s Width : 3 840 pixels Height : 1 634 pixels Display aspect ratio : 2.35:1 Frame rate mode : Constant Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Bits/(Pixel*Frame) : 0.239 Stream size : 44.7 GiB (98%) Title : DUAL AUDIO Writing library : x265 2.7+348-0968a46d6ba4:[Windows][GCC 7.3.0][64 bit] 10bit Encoding settings : cpuid=1176575 / frame-threads=5 / numa-pools=32 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1634 / interlace=0 / total-frames=255642 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=24 / keyint=240 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / radl=0 / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=18.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1) / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-mv-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei Language : Portuguese Default : Yes Forced : Yes Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2 Audio #1 ID : 2 Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : A_AC3 Duration : 2 h 57 min Bit rate mode : Constant Bit rate : 192 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Bit depth : 16 bits Compression mode : Lossy Stream size : 244 MiB (1%) Title : AC3 2.0 Language : Portuguese Service kind : Complete Main Default : Yes Forced : Yes Audio #2ID : 3 Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : A_AC3 Duration : 2 h 57 min Bit rate mode : Constant Bit rate : 640 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Bit depth : 16 bits Compression mode : Lossy Delay relative to video : 2 s 169 ms Stream size : 813 MiB (2%) Title : AC-3 5.1 Language : English Service kind : Complete Main Default : No Forced : No EOT; preg_match_all('/(?:^|\n)(General.*?)(?=\nGeneral|$)/s', $data, $matches); print_r($matches[1]);

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.63
8.3.50.0130.00618.12
8.3.40.0170.00319.04
8.3.30.0150.00019.11
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.180.0100.00725.92
8.2.170.0100.00618.84
8.2.160.0080.00622.96
8.2.150.0070.00025.66
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.95
8.2.110.0030.00620.65
8.2.100.0040.00818.09
8.2.90.0040.00417.85
8.2.80.0040.00419.03
8.2.70.0070.00418.16
8.2.60.0040.00418.22
8.2.50.0030.00518.10
8.2.40.0050.00319.61
8.2.30.0040.00419.34
8.2.20.0040.00418.21
8.2.10.0000.00719.40
8.2.00.0000.00719.19
8.1.280.0090.00925.92
8.1.270.0000.00923.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00621.09
8.1.230.0120.00017.88
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0100.00017.48
8.1.190.0050.00317.48
8.1.180.0080.00018.10
8.1.170.0060.00318.80
8.1.160.0030.00619.11
8.1.150.0050.00318.88
8.1.140.0040.00418.93
8.1.130.0040.00817.66
8.1.120.0000.00917.59
8.1.110.0030.00517.52
8.1.100.0040.00417.62
8.1.90.0050.00517.60
8.1.80.0040.00417.57
8.1.70.0040.00417.57
8.1.60.0030.00617.76
8.1.50.0030.00517.68
8.1.40.0070.00017.69
8.1.30.0040.00417.81
8.1.20.0050.00317.70
8.1.10.0000.00817.81
8.1.00.0030.00517.76
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0040.00418.46
8.0.270.0040.00417.04
8.0.260.0040.00416.93
8.0.250.0040.00417.15
8.0.240.0000.00717.02
8.0.230.0030.00317.15
8.0.220.0070.00317.15
8.0.210.0040.00417.09
8.0.200.0080.00017.07
8.0.190.0040.00417.09
8.0.180.0080.00017.02
8.0.170.0090.00016.97
8.0.160.0040.00417.13
8.0.150.0000.00716.96
8.0.140.0030.00516.94
8.0.130.0060.00013.52
8.0.120.0030.00517.02
8.0.110.0040.00417.02
8.0.100.0030.00516.93
8.0.90.0000.00817.04
8.0.80.0110.00817.09
8.0.70.0000.00817.20
8.0.60.0030.00517.15
8.0.50.0000.00817.09
8.0.30.0090.00916.99
8.0.20.0100.01017.32
8.0.10.0000.00717.29
8.0.00.0120.00817.04
7.4.330.0000.00515.55
7.4.320.0000.00616.80
7.4.300.0030.00316.71
7.4.290.0070.00016.68
7.4.280.0050.00316.74
7.4.270.0070.00016.83
7.4.260.0000.00613.50
7.4.250.0000.00716.77
7.4.240.0030.00316.72
7.4.230.0070.00016.73
7.4.220.0040.00416.73
7.4.210.0070.00716.83
7.4.200.0050.00316.74
7.4.130.0100.00816.60
7.4.120.0090.01516.61
7.4.110.0060.01216.77
7.4.100.0100.00716.53
7.4.90.0090.00916.55
7.4.80.0120.00619.39
7.4.70.0180.00416.59
7.4.60.0140.00916.67
7.4.50.0170.00316.68
7.4.40.0060.01516.70
7.4.30.0150.00916.66
7.4.20.0160.00616.49
7.4.10.0170.00616.71
7.4.00.0040.01316.61
7.3.330.0000.00716.51
7.3.320.0060.00013.32
7.3.310.0000.00716.41
7.3.300.0070.00016.46
7.3.290.0050.01016.49
7.3.280.0090.01016.42
7.3.260.0090.00916.45
7.3.230.0060.01016.81
7.3.210.0030.01316.46
7.3.200.0130.00616.57
7.3.190.0060.01716.79
7.3.180.0130.01316.30
7.3.170.0100.01016.84
7.3.160.0060.01416.80
7.3.150.0090.01316.60
7.3.140.0170.01216.29
7.3.130.0120.00916.61
7.3.120.0070.01316.61
7.3.110.0120.00616.63
7.3.100.0110.00816.53
7.3.90.0120.01116.57
7.3.80.0220.00016.40
7.3.70.0060.01916.44
7.3.60.0150.00916.52
7.3.50.0130.01216.56
7.3.40.0100.01316.59
7.3.30.0200.00316.48
7.3.20.0140.00816.71
7.3.10.0110.01216.66
7.3.00.0060.01216.49
7.2.330.0090.00916.54
7.2.320.0130.00916.50
7.2.310.0130.01316.68
7.2.300.0070.01416.66
7.2.290.0070.01416.71
7.2.280.0180.00916.52
7.2.270.0210.00616.77
7.2.260.0220.00416.75
7.2.250.0190.00816.57
7.2.240.0140.01116.45
7.2.230.0200.00616.72
7.2.220.0130.01316.43
7.2.210.0120.00916.86
7.2.200.0140.01716.73
7.2.190.0200.00216.54
7.2.180.0150.00616.63
7.2.170.0130.01316.48
7.2.160.0140.00916.69
7.2.150.0170.00716.88
7.2.140.0120.00616.95
7.2.130.0040.01416.69
7.2.120.0120.00916.70
7.2.110.0030.01516.66
7.2.100.0130.00516.71
7.2.90.0130.00916.56
7.2.80.0180.00616.85
7.2.70.0140.01116.61
7.2.60.0060.01916.71
7.2.50.0120.01616.69
7.2.40.0220.00616.75
7.2.30.0080.02016.77
7.2.20.0160.00616.66
7.2.10.0210.00716.70
7.2.00.0170.00916.59

preferences:
38.68 ms | 400 KiB | 5 Q