3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chk($a,$b){ mb_regex_encoding('SJIS'); $j=0; $cnt=0; for($i=$a;$i<$b;$i++){ $s=sprintf('%x',$i); $hex = hex2bin($s); if(mb_check_encoding($hex)){ if (!mb_ereg($hex, $hex)){ // echo "$s($hex):NG\n"; $cnt++; } }else{ } $j++; } echo "j:$j\n"; echo "cnt:$cnt\n"; } mb_internal_encoding('SJIS-win'); chk(0xED40,0xFC51);

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.0060.01218.55
8.3.50.0210.00316.59
8.3.40.0040.01218.70
8.3.30.0040.01218.71
8.3.20.0080.00018.94
8.3.10.0040.00423.48
8.3.00.0060.00322.39
8.2.180.0160.00616.88
8.2.170.0080.00822.96
8.2.160.0070.00722.37
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00320.07
8.2.120.0030.00626.35
8.2.110.0090.00019.56
8.2.100.0120.00018.03
8.2.90.0060.00317.88
8.2.80.0000.00917.97
8.2.70.0080.00018.29
8.2.60.0000.00918.47
8.2.50.0060.00318.10
8.2.40.0040.00421.32
8.2.30.0040.00419.40
8.2.20.0030.00518.27
8.2.10.0000.00918.40
8.2.00.0030.00617.88
8.1.280.0160.00625.92
8.1.270.0080.00022.12
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0070.00322.75
8.1.230.0090.00317.83
8.1.220.0030.00617.79
8.1.210.0000.00918.77
8.1.200.0000.01017.63
8.1.190.0000.01216.88
8.1.180.0040.00418.10
8.1.170.0040.00418.91
8.1.160.0040.00419.13
8.1.150.0060.00319.18
8.1.140.0040.00422.40
8.1.130.0040.00417.64
8.1.120.0060.00317.75
8.1.110.0110.00017.65
8.1.100.0000.00917.68
8.1.90.0040.00417.74
8.1.80.0030.00617.78
8.1.70.0030.00617.77
8.1.60.0060.00317.88
8.1.50.0060.00617.80
8.1.40.0040.00417.85
8.1.30.0100.00517.83
8.1.20.0040.00417.94
8.1.10.0030.00617.78
8.1.00.0040.00417.70
8.0.300.0030.00618.77
8.0.290.0100.00017.00
8.0.280.0000.00918.69
8.0.270.0030.00717.00
8.0.260.0090.00017.20
8.0.250.0030.00717.30
8.0.240.0070.00317.29
8.0.230.0030.00617.14
8.0.220.0000.01017.18
8.0.210.0030.00617.14
8.0.200.0030.00617.29
8.0.190.0030.00617.30
8.0.180.0060.00317.24
8.0.170.0070.00417.31
8.0.160.0050.00517.17
8.0.150.0060.00317.22
8.0.140.0040.00717.23
8.0.130.0040.00413.57
8.0.120.0060.00317.11
8.0.110.0000.00917.08
8.0.100.0030.00617.13
8.0.90.0030.00617.08
8.0.80.0060.01117.17
8.0.70.0000.00917.12
8.0.60.0000.00917.17
8.0.50.0030.00617.09
8.0.30.0130.00917.58
8.0.20.0090.01617.55
8.0.10.0030.00617.35
8.0.00.0090.01217.18
7.4.330.0000.00815.55
7.4.320.0060.00316.90
7.4.300.0070.00416.93
7.4.290.0040.00717.03
7.4.280.0040.00816.99
7.4.270.0000.01016.78
7.4.260.0000.00916.81
7.4.250.0000.01016.70
7.4.240.0000.01116.91
7.4.230.0060.00316.81
7.4.220.0030.00717.02
7.4.210.0080.01516.98
7.4.200.0030.00717.09
7.4.160.0030.01716.81
7.4.140.0100.01417.86
7.4.130.0090.02116.81
7.4.120.0120.01316.84
7.4.110.0140.01016.99
7.4.100.0180.01316.88
7.4.90.0070.02116.95
7.4.80.0040.01719.39
7.4.70.0090.01216.79
7.4.60.0070.01616.93
7.4.50.0070.01416.68
7.4.40.0090.01216.89
7.4.00.0110.01115.51
7.3.330.0000.00813.55
7.3.320.0050.00313.71
7.3.310.0060.00716.59
7.3.300.0030.00616.54
7.3.290.0060.00316.54
7.3.280.0030.02416.64
7.3.260.0090.01516.83
7.3.240.0130.01016.79
7.3.230.0090.01516.99
7.3.210.0070.01716.91
7.3.200.0120.00916.73
7.3.190.0120.01516.64
7.3.180.0040.01816.83
7.3.170.0130.02016.70
7.3.160.0040.01716.84
7.3.10.0030.01716.61
7.3.00.0030.01417.03
7.2.330.0140.01116.90
7.2.320.0030.02316.96
7.2.310.0120.01217.02
7.2.300.0130.02017.13
7.2.290.0070.01716.77
7.2.130.0030.01317.01
7.2.120.0120.00817.03
7.2.110.0130.01616.14
7.2.100.0110.01616.28
7.2.90.0170.01416.27
7.2.80.0090.01616.42
7.2.70.0130.01616.59
7.2.60.0120.01216.54
7.2.50.0110.01316.59
7.2.40.0130.01516.62
7.2.30.0120.01416.55
7.2.20.0100.01616.49
7.2.10.0120.01416.51
7.2.00.0120.01016.53
7.1.250.0100.01016.07
7.1.230.0140.01415.08
7.1.220.0200.01115.17
7.1.210.0170.01515.21
7.1.200.0210.01115.18
7.1.190.0200.00815.21
7.1.180.0130.01115.03
7.1.170.0150.01515.02
7.1.160.0160.01215.16
7.1.150.0170.00915.03
7.1.140.0370.00814.99
7.1.130.0190.01415.16
7.1.120.0190.01614.97
7.1.110.0210.01315.16
7.1.100.0160.01815.09
7.1.90.0170.01115.25
7.1.80.0110.02015.25
7.1.70.0140.01514.98
7.1.60.0300.01632.69
7.1.50.0390.01032.71
7.1.40.0320.01432.64
7.1.30.0300.01932.66
7.1.20.0270.01632.64
7.1.10.0180.01015.14
7.1.00.0150.01415.23
5.6.380.0090.01916.00

preferences:
60.5 ms | 401 KiB | 5 Q