3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = addslashes(<<<EDO ��U[o�0}�WXB���aJk�jB���i��1U��^��9)����KDV�'G������6���)�� �.�#��f��2",��'. ���]��mBS��,#k(�I�0�F�;�W��Q�� ��C*8p�-�;)��'<N@�!|R�_�LJ��%����EQ�]�w�c!�&���2��x^A �M��&�/��'�$�����5�>��m^�/ BTKR��X���G�K�ɣ�á��l-�^�����g�~��<�$|�~U����h�AȈ�1�{��Z��f7n�딸�8+�u�:���mY�zgS��w�HN��95f���J��cc�� ������>I�1�g*߇����nM�s2�T��&0�O;��ٶ�\p%E�c�L����<�]G����+�h�gV�f��#���̃[ty��M$���`z�VB����t��"�p����W�[=d�K1\��n�q��Ӥ��gi�0J��-�ո ���T�)| 7x�>����dR"C7Vq� �r ۔�l.��2i���6��<6�2�g�c���A=���z��i��[l�P� F � EOD; ); var_dump([ mb_convert_encoding($str, "UTF-8"), ]);

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)
5.5.120.0000.08317.27
5.5.110.0000.08317.26
5.5.100.0100.07717.28
5.5.90.0030.07317.14
5.5.80.0170.05717.23
5.5.70.0130.07317.18
5.5.60.0030.08017.21
5.5.50.0070.08017.13
5.5.40.0070.07717.16
5.5.30.0070.07717.15
5.5.20.0030.07017.11
5.5.10.0030.08017.15
5.5.00.0100.07317.16
5.4.280.0100.04319.00
5.4.270.0100.03719.09
5.4.260.0070.07718.97
5.4.250.0130.06719.12
5.4.240.0170.06719.13
5.4.230.0030.05318.98
5.4.220.0170.05018.82
5.4.210.0070.05718.95
5.4.200.0100.03319.11
5.4.190.0070.06319.00
5.4.180.0070.06718.98
5.4.170.0030.07719.10
5.4.160.0030.08018.96
5.4.150.0130.06318.97
5.4.140.0070.07316.31
5.4.130.0030.07716.34
5.4.120.0100.07316.25
5.4.110.0130.06016.33
5.4.100.0170.06016.25
5.4.90.0100.06716.41
5.4.80.0030.05016.27
5.4.70.0070.07716.25
5.4.60.0100.05016.23
5.4.50.0030.08016.23
5.4.40.0000.07716.31
5.4.30.0130.05316.30
5.4.20.0200.05716.33
5.4.10.0000.05316.50
5.4.00.0100.04015.73
5.3.280.0000.05314.39
5.3.270.0100.04714.56
5.3.260.0030.05714.57
5.3.250.0030.07714.46
5.3.240.0070.04314.54
5.3.230.0070.08014.46
5.3.220.0070.06714.53
5.3.210.0130.05714.53
5.3.200.0100.07014.65
5.3.190.0170.07014.40
5.3.180.0000.08014.41
5.3.170.0030.07014.39
5.3.160.0100.07314.50
5.3.150.0070.07014.50
5.3.140.0030.05714.53
5.3.130.0130.07314.37
5.3.120.0030.04014.48
5.3.110.0000.07714.52
5.3.100.0070.07013.95
5.3.90.0130.06313.93
5.3.80.0030.08013.78
5.3.70.0000.06713.96
5.3.60.0170.06313.97
5.3.50.0130.06713.88
5.3.40.0030.08014.03
5.3.30.0070.07313.99
5.3.20.0000.04713.69
5.3.10.0070.07313.61
5.3.00.0070.07013.61

preferences:
143.38 ms | 1394 KiB | 7 Q