3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = range(0,5000); function unichr($u) { return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES'); } foreach ($numbers as $number){ echo unichr($number); }

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.70.0130.01316.50
8.3.60.0250.00618.18
8.3.50.0160.01621.93
8.3.40.0140.01418.71
8.3.30.0130.01618.55
8.3.20.0070.00720.15
8.3.10.0110.00420.38
8.3.00.0140.00020.04
8.2.190.0180.00618.28
8.2.180.0240.01016.75
8.2.170.0260.00722.96
8.2.160.0100.01419.51
8.2.150.0100.00324.18
8.2.140.0070.00724.66
8.2.130.0070.00718.95
8.2.120.0030.01026.35
8.2.110.0110.00319.27
8.2.100.0130.00717.78
8.2.90.0040.00817.91
8.2.80.0070.01019.31
8.2.70.0060.00618.04
8.2.60.0050.00518.16
8.2.50.0030.01018.10
8.2.40.0080.00319.30
8.2.30.0080.00419.30
8.2.20.0080.00417.89
8.2.10.0040.00818.19
8.2.00.0030.00818.11
8.1.280.0160.00925.92
8.1.270.0030.01023.83
8.1.260.0030.01228.09
8.1.250.0140.00028.09
8.1.240.0140.00419.42
8.1.230.0130.00621.16
8.1.220.0030.00917.80
8.1.210.0000.01218.97
8.1.200.0110.00317.47
8.1.190.0080.00617.48
8.1.180.0080.00418.10
8.1.170.0090.00318.74
8.1.160.0110.00019.24
8.1.150.0060.00619.10
8.1.140.0060.00619.66
8.1.130.0040.00817.91
8.1.120.0030.00917.57
8.1.110.0030.00917.65
8.1.100.0060.00617.62
8.1.90.0100.00317.65
8.1.80.0000.01217.66
8.1.70.0070.00417.71
8.1.60.0060.00617.78
8.1.50.0040.00817.79
8.1.40.0030.00917.64
8.1.30.0000.01217.86
8.1.20.0080.00417.81
8.1.10.0060.00617.59
8.1.00.0070.00717.62
8.0.300.0120.00020.06
8.0.290.0000.01316.88
8.0.280.0060.00618.57
8.0.270.0000.01417.38
8.0.260.0060.00617.46
8.0.250.0030.00917.19
8.0.240.0030.00917.23
8.0.230.0080.00417.07
8.0.220.0030.00817.05
8.0.210.0060.00617.13
8.0.200.0070.00717.05
8.0.190.0070.00717.05
8.0.180.0000.01216.99
8.0.170.0000.01417.06
8.0.160.0120.00017.01
8.0.150.0060.00616.95
8.0.140.0090.00317.08
8.0.130.0000.01013.47
8.0.120.0030.01317.01
8.0.110.0000.01217.04
8.0.100.0080.00417.21
8.0.90.0070.00717.06
8.0.80.0100.02117.02
8.0.70.0120.00317.16
8.0.60.0040.00717.16
8.0.50.0040.00816.92
8.0.30.0230.02117.45
8.0.20.0250.02417.44
8.0.10.0090.00316.97
8.0.00.0450.02716.89
7.4.330.0070.00315.19
7.4.320.0000.01516.74
7.4.300.0060.00616.64
7.4.290.0060.01316.69
7.4.280.0000.01616.70
7.4.270.0040.01116.83
7.4.260.0070.00716.79
7.4.250.0000.01416.68
7.4.240.0060.00616.72
7.4.230.0000.01316.79
7.4.220.0340.03816.76
7.4.210.0070.02716.73
7.4.200.0060.00916.70
7.4.160.0210.03016.63
7.4.150.0290.02617.40
7.4.140.0380.03117.86
7.4.130.0240.03316.74
7.4.120.0290.02416.64
7.4.110.0140.03916.67
7.4.100.0380.02816.79
7.4.90.0280.01616.74
7.4.80.0350.03219.39
7.4.70.0330.03316.66
7.4.60.0170.02316.77
7.4.50.0160.01016.67
7.4.40.0170.02716.74
7.4.30.0220.02216.83
7.4.00.0170.01715.12
7.3.330.0040.00813.54
7.3.320.0050.00613.52
7.3.310.0030.00916.55
7.3.300.0030.00916.36
7.3.290.0140.02516.48
7.3.280.0150.02716.49
7.3.270.0390.02917.40
7.3.260.0410.02016.72
7.3.250.0210.02716.65
7.3.240.0200.03216.54
7.3.230.0260.01616.78
7.3.210.0250.03816.62
7.3.200.0100.02916.76
7.3.190.0190.02016.77
7.3.180.0140.03116.66
7.3.170.0120.03116.59
7.3.160.0160.02616.66
7.3.120.0110.02515.35
7.3.110.0170.01714.75
7.3.100.0130.01915.18
7.3.90.0130.02214.99
7.3.80.0180.01415.16
7.3.70.0120.01514.69
7.3.60.0110.01814.93
7.3.50.0100.02015.14
7.3.40.0100.02715.10
7.3.30.0170.01415.04
7.3.20.0030.02316.93
7.3.10.0100.02016.74
7.3.00.0100.02616.84
7.2.330.0300.02716.90
7.2.320.0290.02916.71
7.2.310.0260.02916.83
7.2.300.0260.02016.91
7.2.290.0160.03516.81
7.2.250.0130.02914.96
7.2.240.0270.01715.59
7.2.230.0160.02215.39
7.2.220.0130.02615.30
7.2.210.0150.02515.01
7.2.200.0160.01615.31
7.2.190.0130.02615.21
7.2.180.0030.02715.05
7.2.170.0070.02415.41
7.2.60.0060.01617.02
7.2.00.0090.01219.37
7.1.330.0210.01415.84
7.1.320.0210.01015.76
7.1.310.0130.02615.94
7.1.300.0150.02515.84
7.1.290.0030.02715.66
7.1.280.0070.02115.98
7.1.270.0140.01715.46
7.1.260.0190.01315.80
7.1.200.0130.01015.84
7.1.100.0100.01018.12
7.1.70.0030.01417.12
7.1.60.0200.02419.77
7.1.50.0380.01034.63
7.1.00.0170.08322.57
7.0.200.0110.01116.85
7.0.60.0300.07720.05
7.0.50.0200.04717.97
7.0.40.0070.09020.27
7.0.30.0300.09320.23
7.0.20.0230.07020.09
7.0.10.0070.05020.30
7.0.00.0200.04020.06
5.6.280.0130.08721.63
5.6.210.0100.08321.24
5.6.200.0070.06318.73
5.6.190.0130.07021.09
5.6.180.0230.07020.86
5.6.170.0330.07020.88
5.6.160.0030.06320.86
5.6.150.0130.09718.65
5.6.140.0170.08718.63
5.6.130.0070.06018.74
5.6.120.0130.06721.56
5.6.110.0230.08021.52
5.6.100.0070.05321.64
5.6.90.0130.09321.65
5.6.80.0130.09320.90
5.5.350.0330.07720.94
5.5.340.0170.04018.46
5.5.330.0200.05720.66
5.5.320.0330.06320.67
5.5.310.0230.04320.68
5.5.300.0170.05018.50
5.5.290.0100.05718.46
5.5.280.0130.10021.36
5.5.270.0100.08021.27
5.5.260.0230.08321.19
5.5.250.0170.10021.06
5.5.240.0270.08720.58

preferences:
47.75 ms | 401 KiB | 5 Q