3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = "78daedbd4d8c24477626e8c6c89c6896180c8f6cd4b9b85cec654e418408f0c65257e55ffd46b1186c691603346647eaff6ef63fa5590c78198c7423b097699d08ec49d4eeb0d4ffcdec9fec9666b08bca05eadca804ea2e5436efab65ae3f773777337333f767ef99875774da23a322c2c33ffbecefbdef99b947e487e7e7e7ff5f92242211bbc95808010fdd26998934155d36027b2e61d8783cb6159cd167fc9d1508c12fc6eed2511560f28fc62367d9a811e0f6ff7834128787d6b23be943f02b3488299777b9f6963dffea09f07ce6156be71f07e3dfd921f1d78525defceaf8efecf85740f77fccf85ba75f4e3ca3f18f3d399dfcfcf6fbd8745af25fa9469ec42f84570dccd907ed27cc3b6afb47e1f97d9b1f96dfb3fbadfdcfb016fdb598e99f61f497e18021f20f8cccb5d52084fe723a80cf9f957348af008f3f2b018a39c45720b8fed6853dff7cb7fe09a7fe05e14709b0839fa4ff6ad170a49bdf32fe527f48fc3cff97fabbb343d4df00fa5f72b3f32f1463937f87c5efdbe0b20253c97f2521f57c35fe5e35b0e92f9d9da1ffd3aafd1b9efff8f85f6a4b00b8eb5f0ff94b534b0dd6abbf067f90f673129000f98f6f000cbdfef6a66ff2933d40a33fc42ec043f28f157a37bfa6f9a21f7ed1b201609da3e00b157fbffae7e0e7eb2f27fb30f49f2243a4eca38e418afed2a6c0d8b70360f657fc939c9fdc78fff6e7239e3d95fa0bfca35966f4fc8330e2f973a1ff13d97e1a7bdbfc7bb19d5f9d7f3cfdf7e882e6fe5ca8f53772e72f3b2db8fe17330abbf5983612807c038ecc3f1a8db9fcccf68f7dd30f53ffae84d31f1c7d7ffc9805b89d9f580323fd76f23b73c44a80a8edd74a8343f27511e16c6d96a6ea3f39fea326c0a845ffaf240c0144c63f578e2ef5872c41b4fc43d35f68fe8cdc7ecaf64b15832601f20faf005010ebfcc49d9f8adfafe5fafb4988eb0ffe1d5059a8fd0784fad84f615f7f285dabbb023df157faef3bf7c254609c2700428801f9fdf41f82aececfd55f6305da5983c0fa8b1360d71cac0480c86f387f465ff0abea2bca357f6ae597fa1ba4ff1345fff5565af84bfdbfc288c0c8e03742adff89ed27f3d7fa5b08709ffcd6c393899aff10db9f57e0f265d438c87ed7f497bbffe09d80a4ea06c4730971ebc9a7ff15eafc5f655eac75ffdff4c029fffe83bc0218f9b59da2df7f426aff08b9feec8b1fbdfe6dcb3f38edf7d65f1b3f79fcbdf7ff2bdf9f2815a0b7bfb1fc402400057d5e81aaffc9fb7f86035602dc5d81b2f9c5fc23e71f067d1bbfe683157fc2eaffbcf9cadd170efa918d3f7babe80f951fbffe364380d4ffdef79f472deb7fbefed1f943e82f25ff30f48f37fe790778e51ff5440870ff1be5feb3b0fc5eccf6f9c7e077341f274b23e6f243d3bf897ad761e33a87496dc43ff2fc23f29bfa43eeff51350013c75d972dfcf5fe1b7dfcb3c25e7bad739c85955f2effc80948e17e2a3fe616bc063fe7fa7f5380fdf81346fad1d41f6cfe116afef9e45fbafc076a3ff440e7dd9fa391c92f4a7ae5f68330edb7d323f49fdafeb2a8b63ee8e0e7b4bf1680767ed1c14f1d7f81c940baf8e9c6bafb33ccfdf7ccfbdfb9fbef0e0fa8bb1c76224736011261f2bf515de284c05f5d7fe3f6ffc4c19faf721afca6fe92e3cfc8d57ea1f38b767eeaf8e7ed2ff4d79d7ef4997f40619afe3f8f9af986fe13e92df92fe83f623162e43f747ed3fd1210e0ee0ae8facfe01f37f851fdafe7df747ef2fd7755fce15c7ec25fff777ec0d43f250168a3ef915f16e54e40a6c6574eb48aad41ff34fe91f166ddfa1f9cdfb70aa1fbdf45e36cb468f033d6ff42d8d7bf9afe76e51f9cf5bf5a625d81115eff39e98fd6ff5a02d2d5fe80faaf14d932e9cd437afe455f7f0acb0a18e10566ffd3dbdf281abb001775ff13d913c7ef6fa02d40fecfbd019e1f7f066dbffff22be4d75f8c"; $foo = pack("H*" , $s); $bar = hex2bin($s); echo $s; var_dump($foo); var_dump($bar); $data = zlib_decode($foo); $data = bin2hex($data); var_dump($data); ?>
based on kvRIN

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0070.01119.48
7.1.200.0030.01015.89
7.1.100.0030.00917.98
7.1.70.0030.00617.19
7.1.60.0120.00919.50
7.1.50.0070.01516.88
7.1.00.0070.07022.29
7.0.200.0070.00314.74
7.0.140.0030.06722.16
7.0.60.0070.09020.05
7.0.50.0000.04318.00
7.0.40.0130.07020.22
7.0.30.0300.04020.19
7.0.20.0170.05720.18
7.0.10.0170.06020.15
7.0.00.0100.07320.05
5.6.280.0070.07021.14
5.6.210.0130.07020.73
5.6.200.0130.08018.16
5.6.190.0070.04320.50
5.6.180.0300.03020.39
5.6.170.0370.04320.59
5.6.160.0070.07320.51
5.6.150.0030.07318.22
5.6.140.0030.08718.10
5.6.130.0130.07718.13
5.6.120.0070.04321.15
5.6.110.0100.07720.93
5.6.100.0030.08721.05
5.6.90.0100.07021.03
5.6.80.0100.08020.38
5.6.70.0370.06720.57
5.5.350.0330.07320.36
5.5.340.0070.08017.98
5.5.330.0030.04320.45
5.5.320.0100.07320.29
5.5.310.0370.07020.14
5.5.300.0070.04718.04
5.5.290.0130.04018.00
5.5.280.0070.08720.84
5.5.270.0130.08320.83
5.5.260.0030.04020.91
5.5.250.0130.07020.76
5.5.240.0100.07320.31
5.4.450.0130.06019.65
5.4.440.0970.06019.49
5.4.430.0900.05719.11
5.4.420.0870.05019.46
5.4.410.0900.05019.39
5.4.400.0400.05318.79
5.4.390.0400.05318.54
5.4.380.0300.07018.62
5.4.370.0370.06018.70
5.4.360.0430.06318.50
5.4.350.0300.05718.59
5.4.340.0330.05018.67
5.4.320.0230.06318.50
5.4.310.0300.06318.70
5.4.300.0400.06718.71
5.4.290.0330.05718.75
5.4.280.0300.06718.71
5.4.270.0330.06018.55
5.4.260.0370.06018.61
5.4.250.0370.06018.72
5.4.240.0230.06318.49
5.4.230.0400.05318.74
5.4.220.0370.05318.69
5.4.210.0400.07318.56
5.4.200.0370.04716.42
5.4.190.0300.06018.59
5.4.180.0370.05018.73
5.4.170.0270.06018.70
5.4.160.0330.05718.65
5.4.150.0370.05318.69
5.4.140.0400.04716.29
5.4.130.0570.06016.27
5.4.120.0370.04716.20
5.4.110.0300.05716.11
5.4.100.0330.05316.41
5.4.90.0400.05016.36
5.4.80.0330.05016.16
5.4.70.0270.05716.09
5.4.60.0200.05016.25
5.4.50.0100.05316.23
5.4.40.0200.05716.20
5.4.30.0100.06016.02
5.4.20.0400.05016.15
5.4.10.0330.05316.32
5.4.00.0270.05715.61
5.3.290.0470.07014.67
5.3.280.0370.06714.57
5.3.270.0330.07014.52
5.3.260.0400.05314.54
5.3.250.0400.08014.66
5.3.240.0400.05714.68
5.3.230.0330.06014.58
5.3.220.0370.07314.60
5.3.210.0430.07014.54
5.3.200.0370.07714.57
5.3.190.0400.06714.56
5.3.180.0400.05714.48
5.3.170.0430.04714.54
5.3.160.0330.05314.56
5.3.150.0330.05714.48
5.3.140.0300.06314.66
5.3.130.0400.05314.63
5.3.120.0330.06014.56
5.3.110.0370.05714.55
5.3.100.0200.06314.13
5.3.90.0400.05314.01
5.3.80.0370.04713.96
5.3.70.0270.06014.09
5.3.60.0300.05313.97
5.3.50.0470.05013.92
5.3.40.0300.06013.88
5.3.30.0470.07313.81
5.3.20.0470.06013.61
5.3.10.0270.06013.75
5.3.00.0570.06713.55
5.2.170.0230.05711.07
5.2.160.0300.05011.19
5.2.150.0300.06011.10
5.2.140.0300.05011.18
5.2.130.0230.04711.11
5.2.120.0230.04311.03
5.2.110.0300.03711.14
5.2.100.0270.05011.07
5.2.90.0230.04711.07
5.2.80.0230.05011.16
5.2.70.0230.04311.09
5.2.60.0270.04711.02
5.2.50.0300.05710.94
5.2.40.0330.04310.97
5.2.30.0330.03710.96
5.2.20.0270.05311.00
5.2.10.0270.04311.00
5.2.00.0300.06710.71
5.1.60.0070.05010.03
5.1.50.0330.03010.10
5.1.40.0270.0379.96
5.1.30.0270.03710.34
5.1.20.0370.03310.41
5.1.10.0400.04010.09
5.1.00.0270.03710.14
5.0.50.0200.0278.57
5.0.40.0230.0278.39
5.0.30.0100.0508.33
5.0.20.0200.0308.32
5.0.10.0170.0338.29
5.0.00.0230.0508.34
4.4.90.0170.0307.35
4.4.80.0200.0277.35
4.4.70.0100.0307.35
4.4.60.0130.0237.35
4.4.50.0070.0377.35
4.4.40.0170.0437.35
4.4.30.0170.0277.35
4.4.20.0200.0207.35
4.4.10.0070.0277.35
4.4.00.0100.0377.35
4.3.110.0070.0237.35
4.3.100.0230.0177.35
4.3.90.0100.0337.35
4.3.80.0130.0437.35
4.3.70.0200.0137.35
4.3.60.0100.0207.35
4.3.50.0070.0277.35
4.3.40.0070.0407.35
4.3.30.0000.0307.35
4.3.20.0100.0237.35
4.3.10.0070.0337.35
4.3.00.0030.0206.79