3v4l.org

run code in 300+ PHP versions simultaneously
<?php function str_case_cmp($a, $b) { return 0 === strcasecmp( $a, $b ); } function str_to_lower($a, $b) { return strtolower($a) === strtolower($b); }

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.0090.00819.98
8.5.10.0110.00818.42
8.5.00.0100.01219.86
8.4.160.0110.01423.74
8.4.150.0010.00114.05
8.4.140.0120.00917.20
8.4.130.0060.00319.00
8.4.120.0110.00823.74
8.4.110.0020.00818.70
8.4.100.0140.00618.79
8.4.90.0120.00820.47
8.4.80.0130.00618.49
8.4.70.0050.00318.04
8.4.60.0110.00918.86
8.4.50.0100.01018.31
8.4.40.0130.00617.35
8.4.30.0100.01018.84
8.4.20.0040.00421.45
8.4.10.0100.01019.21
8.3.290.0130.00720.62
8.3.280.0160.01018.32
8.3.270.0150.00516.42
8.3.260.0110.00716.36
8.3.250.0080.00618.99
8.3.240.0080.01017.16
8.3.230.0100.01016.73
8.3.220.0140.00418.72
8.3.210.0150.00416.25
8.3.200.0030.00516.33
8.3.190.0110.00716.96
8.3.180.0130.00817.03
8.3.170.0110.00718.53
8.3.160.0030.01516.99
8.3.150.0130.00617.21
8.3.140.0070.01020.83
8.3.130.0040.00418.54
8.3.120.0110.00418.37
8.3.110.0040.00418.29
8.3.100.0060.00316.33
8.3.90.0070.00017.91
8.3.80.0040.00417.97
8.3.70.0450.00717.97
8.3.60.0380.01217.97
8.3.50.0120.00317.97
8.3.40.0210.01117.97
8.3.30.0280.00917.97
8.3.20.0320.01017.97
8.3.10.0330.00717.97
8.3.00.0380.00317.97
8.2.300.0110.00923.73
8.2.290.0100.00620.07
8.2.280.0100.00518.49
8.2.270.0110.00717.07
8.2.260.0000.00818.41
8.2.250.0080.00016.45
8.2.240.0030.00616.80
8.2.230.0080.00020.94
8.2.220.0070.00724.06
8.2.210.0140.00426.77
8.2.200.0030.00618.41
8.2.190.0410.00317.97
8.2.180.0410.01017.97
8.2.170.0260.01217.97
8.2.160.0360.01017.97
8.2.150.0300.00517.97
8.2.140.0230.00617.97
8.2.130.0250.00417.97
8.2.120.0180.00917.97
8.2.110.0160.01217.97
8.2.100.0270.00017.97
8.2.90.0110.01517.97
8.2.80.0130.00917.97
8.2.70.0270.00017.97
8.2.60.0240.00617.97
8.2.50.0280.01117.97
8.2.40.0220.00917.97
8.2.30.0330.00917.97
8.2.20.0320.01117.97
8.2.10.0420.00617.97
8.2.00.0450.00317.97
8.1.340.0120.00821.37
8.1.330.0110.00721.80
8.1.320.0080.00817.54
8.1.310.0110.00816.80
8.1.300.0060.01317.60
8.1.290.0090.00018.88
8.1.280.0390.01117.97
8.1.270.0390.00617.97
8.1.260.0250.01417.97
8.1.250.0240.01017.97
8.1.240.0310.00517.97
8.1.230.0270.00417.97
8.1.220.0300.00317.97
8.1.210.0250.01117.97
8.1.200.0340.00317.97
8.1.190.0330.00717.97
8.1.180.0380.00317.97
8.1.170.0360.00717.97
8.1.160.0300.00917.97
8.1.150.0270.00017.97
8.1.140.0190.00317.97
8.1.130.0240.00017.97
8.1.120.0170.00417.97
8.1.110.0120.00817.97
8.1.100.0210.00017.97
8.1.90.0210.00417.97
8.1.80.0240.00317.97
8.1.70.0260.00317.97
8.1.60.0300.00317.97
8.1.50.0330.00317.97
8.1.40.0290.00617.97
8.1.30.0310.00917.97
8.1.20.0200.01117.97
8.1.10.0360.00817.97
8.1.00.0300.01017.97

preferences:
37.69 ms | 403 KiB | 5 Q