3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mbStringToArray ($string) { $strlen = mb_strlen($string); while ($strlen) { $array[] = mb_substr($string,0,1,"UTF-8"); $string = mb_substr($string,1,$strlen,"UTF-8"); $strlen = mb_strlen($string); } return $array; } $a = "बिक्रम"; $lol = mbStringToArray($a); $test = json_decode('"\u093F"'); function overall (){ $hindi = array("\u093E","\u093F","\u0945","\u0946","\u0947","\u0948","\u0949","\u094A","\u094B","\u094C","\u094D"); for($i = 0; $i<count($hindi); $i++){ echo json_decode('"'.$hindi[$i].'"'); echo "<br/>" } } echo $test."---".$lol[1]; if($test == $lol[1]){ echo "Game"; } else echo "No game"; overall(); ?>

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.4.340.0040.03712.04
5.4.320.0100.03612.53
5.4.310.0090.03612.52
5.4.300.0100.04712.53
5.4.290.0150.04312.52
5.4.280.0100.04412.42
5.4.270.0070.04112.42
5.4.260.0170.03712.42
5.4.250.0060.04312.42
5.4.240.0060.04312.42
5.4.230.0100.03512.41
5.4.220.0090.03312.41
5.4.210.0090.03812.41
5.4.200.0070.03912.41
5.4.190.0070.04412.41
5.4.180.0050.03812.41
5.4.170.0090.03412.41
5.4.160.0090.03212.41
5.4.150.0140.02912.41
5.4.140.0090.03412.10
5.4.130.0070.03712.08
5.4.120.0060.03612.04
5.4.110.0060.03612.04
5.4.100.0060.03712.04
5.4.90.0080.03712.04
5.4.80.0060.03812.04
5.4.70.0100.03412.04
5.4.60.0170.02712.04
5.4.50.0080.03612.03
5.4.40.0060.04212.02
5.4.30.0090.03712.02
5.4.20.0020.03912.01
5.4.10.0100.03912.01
5.4.00.0040.04311.50
5.3.290.0060.03912.80
5.3.280.0080.03712.71
5.3.270.0100.03712.72
5.3.260.0060.04112.72
5.3.250.0090.03712.72
5.3.240.0050.03812.72
5.3.230.0030.04212.71
5.3.220.0060.03712.68
5.3.210.0060.03912.68
5.3.200.0090.03512.68
5.3.190.0050.04112.68
5.3.180.0040.03912.67
5.3.170.0080.03512.67
5.3.160.0050.04012.68
5.3.150.0100.03512.67
5.3.140.0050.04012.66
5.3.130.0110.03512.66
5.3.120.0090.03912.65
5.3.110.0070.03912.66
5.3.100.0050.03912.13
5.3.90.0040.03912.11
5.3.80.0040.03912.11
5.3.70.0050.03712.11
5.3.60.0090.03412.09
5.3.50.0050.03912.04
5.3.40.0100.03512.03
5.3.30.0090.03411.99
5.3.20.0080.03611.78
5.3.10.0090.03511.74
5.3.00.0060.03611.73
5.2.170.0070.0359.23
5.2.160.0050.0309.23
5.2.150.0040.0339.23
5.2.140.0030.0339.22
5.2.130.0040.0329.19
5.2.120.0070.0299.19
5.2.110.0030.0319.19
5.2.100.0050.0299.18
5.2.90.0060.0309.19
5.2.80.0080.0309.18
5.2.70.0040.0329.18
5.2.60.0030.0329.14
5.2.50.0050.0309.11
5.2.40.0040.0319.09
5.2.30.0050.0309.06
5.2.20.0040.0309.05
5.2.10.0040.0318.95
5.2.00.0060.0288.82
5.1.60.0040.0248.10
5.1.50.0060.0248.10
5.1.40.0010.0288.08
5.1.30.0100.0238.43
5.1.20.0010.0328.45
5.1.10.0050.0268.18
5.1.00.0040.0258.18
5.0.50.0020.0216.65
5.0.40.0000.0226.51
5.0.30.0020.0336.32
5.0.20.0050.0176.29
5.0.10.0070.0166.27
5.0.00.0050.0296.27
4.4.90.0050.0134.78
4.4.80.0020.0174.76
4.4.70.0050.0144.76
4.4.60.0000.0184.75
4.4.50.0050.0134.77
4.4.40.0050.0234.71
4.4.30.0050.0144.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0070.0204.76
4.3.110.0030.0174.66
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0030.0234.58
4.3.70.0010.0164.63
4.3.60.0050.0134.62
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0010.0173.31
4.3.20.0020.0163.30
4.3.10.0040.0143.25
4.3.00.0100.0236.77

preferences:
142.84 ms | 1394 KiB | 7 Q