3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, "tr_TR"); $str="i"; $res=strtoupper($str); var_dump([ "str"=>$str, "str_hex"=>bin2hex($str), "res"=>$res, "res_hex"=>bin2hex($res), ]);

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.5.20.0120.01019.65
8.5.10.0120.00816.75
8.5.00.0140.01120.24
8.4.170.0150.01124.02
8.4.160.0080.00719.92
8.4.150.0020.00014.05
8.4.140.0190.01017.61
8.4.130.0210.01017.89
8.4.120.0090.01320.62
8.4.110.0110.00522.31
8.4.100.0170.00817.76
8.4.90.0100.00318.98
8.4.80.0130.00717.98
8.4.70.0030.00519.61
8.4.60.0140.00819.13
8.4.50.0180.00518.96
8.4.40.0110.00417.72
8.4.30.0000.01820.67
8.4.20.0240.00318.05
8.4.10.0090.00619.89
8.3.300.0210.00718.66
8.3.290.0140.01120.84
8.3.280.0230.01018.50
8.3.270.0140.01216.83
8.3.260.0190.00517.05
8.3.250.0100.00919.11
8.3.240.0060.00417.51
8.3.230.0140.00817.05
8.3.220.0160.00817.54
8.3.210.0100.00816.92
8.3.200.0050.00416.75
8.3.190.0150.00917.51
8.3.180.0160.00617.54
8.3.170.0020.00722.93
8.3.160.0160.00317.18
8.3.150.0070.01117.36
8.3.140.0090.00316.82
8.3.130.0070.00718.66
8.3.120.0120.00019.43
8.3.110.0180.00016.86
8.3.100.0190.00824.06
8.3.90.0140.00026.77
8.3.80.0060.00316.75
8.3.70.0110.00816.75
8.3.60.0060.01316.75
8.3.50.0060.01219.98
8.3.40.0100.01019.04
8.3.30.0100.00718.69
8.3.20.0000.00824.18
8.3.10.0060.00624.66
8.3.00.0050.00326.16
8.2.300.0120.00818.27
8.2.290.0130.01220.54
8.2.280.0140.00718.87
8.2.270.0100.01317.15
8.2.260.0060.00616.92
8.2.250.0070.00318.88
8.2.240.0070.00417.41
8.2.230.0110.00020.94
8.2.220.0150.00037.54
8.2.210.0070.00426.77
8.2.200.0050.01016.75
8.2.190.0200.00016.58
8.2.180.0170.00325.92
8.2.170.0120.00322.96
8.2.160.0160.00022.96
8.2.150.0020.00525.66
8.2.140.0080.00024.66
8.2.130.0070.00226.16
8.2.120.0060.00326.16
8.2.110.0100.00020.64
8.2.100.0090.00020.61
8.1.340.0120.00817.82
8.1.330.0190.00721.87
8.1.320.0130.00816.55
8.1.310.0130.00716.91
8.1.300.0060.00620.27
8.1.290.0100.00018.88
8.1.280.0210.00325.92
8.1.270.0000.00723.99
8.1.260.0100.00026.35
8.1.250.0060.00628.09
8.1.240.0040.00420.67
8.1.230.0030.00918.89
7.4.260.0080.00316.69

preferences:
31.22 ms | 403 KiB | 5 Q