3v4l.org

run code in 200+ PHP versions simultaneously
<?php $stringA = 'INTËRÑÂTÎÔNÆLÍZÀTIØN'; $stringB = 'Intërñâtîônælízàtiøn'; echo 'strcasecmp():',PHP_EOL; var_dump(strcasecmp($stringA, $stringB) === 0); echo PHP_EOL,'strnatcasecmp():',PHP_EOL; var_dump(strnatcasecmp($stringA, $stringB) === 0); echo PHP_EOL,'str_ireplace():',PHP_EOL; var_dump(str_ireplace($stringA, '', $stringB, $count) === '' && $count === 1); echo PHP_EOL,'preg_match():',PHP_EOL; var_dump(preg_match('`^' . preg_quote($stringA, '`') . '$`i', $stringB) === 1);
based on u8T2L

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)
7.4.40.0130.00816.66
7.4.30.0130.00616.67
7.4.20.0130.01316.39
7.4.10.0190.00316.52
7.4.00.0030.01616.61
7.3.160.0080.00816.56
7.3.150.0040.01316.23
7.3.140.0130.00816.27
7.3.130.0140.00716.02
7.3.120.0120.00916.30
7.3.110.0290.00316.25
7.3.100.0170.00616.43
7.3.90.0170.01116.55
7.3.80.0080.01216.09
7.3.70.0060.01516.09
7.3.60.0100.01016.16
7.3.50.0050.01516.30
7.3.40.0130.00616.14
7.3.30.0180.00516.11
7.3.20.0170.00318.02
7.3.10.0140.00817.91
7.3.00.0130.00518.15
7.2.290.0030.01316.72
7.2.280.0130.00916.64
7.2.270.0210.00316.80
7.2.260.0050.01516.53
7.2.250.0170.00616.48
7.2.240.0040.01716.45
7.2.230.0160.00416.67
7.2.220.0230.00516.87
7.2.210.0100.01016.47
7.2.200.0170.00416.36
7.2.190.0160.00316.42
7.2.180.0140.01416.43
7.2.170.0100.01416.60
7.2.160.0210.00516.62
7.2.150.0120.00818.41
7.2.140.0180.00918.49
7.2.130.0150.00918.25
7.2.120.0200.00818.23
7.2.110.0130.01318.15
7.2.100.0160.01218.13
7.2.90.0180.00318.22
7.2.80.0140.00718.33
7.2.70.0160.01018.31
7.2.60.0130.00918.21
7.2.50.0200.00618.34
7.2.40.0090.01318.11
7.2.30.0100.01118.29
7.2.20.0190.00618.41
7.2.10.0120.01218.27
7.2.00.0090.00918.32
7.1.330.0250.00317.57
7.1.320.0260.00017.72
7.1.310.0130.01317.28
7.1.300.0240.00717.51
7.1.290.0250.00717.47
7.1.280.0210.01417.48
7.1.270.0230.01017.50
7.1.260.0200.00717.36
7.1.250.0250.00317.24
7.1.240.0180.00917.34
7.1.230.0160.01117.46
7.1.220.0180.01517.42
7.1.210.0190.00817.59
7.1.200.0180.00917.52
7.1.190.0240.00717.37
7.1.180.0170.01417.23
7.1.170.0180.01217.52
7.1.160.0160.01217.29
7.1.150.0220.00717.31
7.1.140.0210.01117.35
7.1.130.0220.01117.36
7.1.120.0190.00817.35
7.1.110.0150.01017.61
7.1.100.0150.01217.37
7.1.90.0160.01317.34
7.1.80.0070.01917.62
7.1.70.0210.00817.40
7.1.60.0180.00917.57
7.1.50.0150.01517.33
7.1.40.0220.00717.48
7.1.30.0170.01017.50
7.1.20.0230.00317.63
7.1.10.0160.01017.38
7.1.00.0210.01117.43
7.0.330.0240.00317.16
7.0.320.0190.01217.11
7.0.310.0200.00916.90
7.0.300.0220.01017.23
7.0.290.0220.00817.21
7.0.280.0160.01217.20
7.0.270.0210.00417.25
7.0.260.0190.00717.10
7.0.250.0210.00517.12
7.0.240.0220.00617.23
7.0.230.0190.00917.15
7.0.220.0190.01117.32
7.0.210.0200.00717.15
7.0.200.0210.00417.17
7.0.190.0160.01217.21
7.0.180.0150.01117.17
7.0.170.0210.00717.23
7.0.160.0180.00717.07
7.0.150.0170.01117.15
7.0.140.0190.00917.29
7.0.130.0220.00417.18
7.0.120.0210.00717.24
7.0.110.0260.00017.23
7.0.100.0270.00617.20
7.0.90.0210.00517.08
7.0.80.0120.01617.18
7.0.70.0190.00817.11
7.0.60.0170.01017.12
7.0.50.0200.00416.91
7.0.40.0190.00817.12
7.0.30.0130.01917.15
7.0.20.0160.01316.99
7.0.10.0230.00817.20
7.0.00.0230.00717.16
5.6.400.0150.01515.88
5.6.390.0240.00716.10
5.6.380.0140.01415.82
5.6.370.0190.01216.25
5.6.360.0200.01316.09
5.6.350.0190.01115.99
5.6.340.0170.01116.12
5.6.330.0180.01115.79
5.6.320.0190.00915.77
5.6.310.0120.01815.78
5.6.300.0220.01016.07
5.6.290.0240.00915.84
5.6.280.0230.00816.04
5.6.270.0150.01216.17
5.6.260.0200.00916.20
5.6.250.0150.01216.16
5.6.240.0260.00915.84
5.6.230.0160.01316.02
5.6.220.0250.00415.88
5.6.210.0220.00515.86
5.6.200.0200.01016.02
5.6.190.0180.01416.04
5.6.180.0290.00416.00
5.6.170.0230.01215.78
5.6.160.0180.01116.03
5.6.150.0200.00816.06
5.6.140.0120.01915.81
5.6.130.0190.01015.75
5.6.120.0130.01615.89
5.6.110.0190.01715.97
5.6.100.0130.01315.83
5.6.90.0210.00615.88
5.6.80.0130.01315.90
5.6.70.0150.01215.81
5.6.60.0210.00615.98
5.6.50.0150.01216.05
5.6.40.0130.01315.96
5.6.30.0150.01116.10
5.6.20.0170.01315.96
5.6.10.0120.01815.84
5.6.00.0160.01515.99
5.5.380.0180.00915.70
5.5.370.0180.00915.84
5.5.360.0140.01515.89
5.5.350.0240.00916.14
5.5.340.0180.01615.81
5.5.330.0210.01015.78
5.5.320.0260.00315.86
5.5.310.0210.00915.82
5.5.300.0210.00715.75
5.5.290.0190.00915.90
5.5.280.0190.01115.89
5.5.270.0130.01716.08
5.5.260.0250.00415.96
5.5.250.0150.01215.73
5.5.240.0160.00915.84
5.5.230.0120.01515.65
5.5.220.0180.00915.93
5.5.210.0210.00515.75
5.5.200.0240.00715.72
5.5.190.0170.01315.97
5.5.180.0190.00815.83
5.5.170.0140.01415.95
5.5.160.0220.00915.83
5.5.150.0130.01316.01
5.5.140.0250.00615.57
5.5.130.0210.01315.96
5.5.120.0190.01015.85
5.5.110.0190.01015.65
5.5.100.0150.01215.97
5.5.90.0220.01115.94
5.5.80.0060.02215.98
5.5.70.0210.00915.82
5.5.60.0170.01015.95
5.5.50.0200.00815.79
5.5.40.0210.01115.76
5.5.30.0180.01115.90
5.5.20.0270.00515.75
5.5.10.0210.00915.59
5.5.00.0160.01215.64
5.4.450.0120.01212.90
5.4.440.0120.01512.93
5.4.430.0130.00812.79
5.4.420.0120.01212.57
5.4.410.0180.00312.75
5.4.400.0110.00812.46
5.4.390.0150.00512.64
5.4.380.0190.00412.52
5.4.370.0130.01012.63
5.4.360.0130.00812.44
5.4.350.0190.00712.68
5.4.340.0170.00612.56
5.4.330.0130.00912.67
5.4.320.0180.00312.64
5.4.310.0120.00812.52
5.4.300.0130.01112.47
5.4.290.0150.00612.46
5.4.280.0150.00612.71
5.4.270.0150.00912.53
5.4.260.0130.01412.53
5.4.250.0130.00912.48
5.4.240.0150.00812.79
5.4.230.0170.00612.61
5.4.220.0170.00712.47
5.4.210.0140.00712.54
5.4.200.0190.00612.75
5.4.190.0130.01312.60
5.4.180.0150.00812.50
5.4.170.0230.00012.51
5.4.160.0160.00512.54
5.4.150.0150.01112.59
5.4.140.0140.00712.61
5.4.130.0110.01412.56
5.4.120.0170.00912.57
5.4.110.0110.00912.62
5.4.100.0150.00612.82
5.4.90.0190.00612.61
5.4.80.0140.01112.62
5.4.70.0210.00312.68
5.4.60.0110.01112.59
5.4.50.0170.00412.54
5.4.40.0190.00712.53
5.4.30.0150.00812.63
5.4.20.0130.00612.64
5.4.10.0220.00012.64
5.4.00.0150.00512.53
5.3.290.0150.01113.11
5.3.280.0150.00612.96
5.3.270.0110.01113.07
5.3.260.0130.01413.16
5.3.250.0130.01012.96
5.3.240.0130.00812.96
5.3.230.0120.01212.99
5.3.220.0220.00612.92
5.3.210.0130.00912.89
5.3.200.0120.00912.82
5.3.190.0130.01413.03
5.3.180.0190.00913.20
5.3.170.0120.00913.16
5.3.160.0130.00913.08
5.3.150.0220.00313.08
5.3.140.0120.00913.20
5.3.130.0110.01113.04
5.3.120.0170.01013.01
5.3.110.0180.00513.09
5.3.100.0150.00912.98
5.3.90.0060.01313.30
5.3.80.0200.00012.93
5.3.70.0140.00912.89
5.3.60.0160.00813.06
5.3.50.0150.01112.98
5.3.40.0110.00912.95
5.3.30.0160.00513.00
5.3.20.0140.00812.97
5.3.10.0070.01412.79
5.3.00.0120.00812.86
5.2.170.0120.00612.14
5.2.160.0180.00012.04
5.2.150.0150.00312.04
5.2.140.0110.00711.89
5.2.130.0100.00711.85
5.2.120.0110.01111.98
5.2.110.0080.00911.97
5.2.100.0130.00412.04
5.2.90.0070.01111.93
5.2.80.0150.00311.84
5.2.70.0150.00312.07
5.2.60.0090.00911.85
5.2.50.0100.00711.85
5.2.40.0070.01011.89
5.2.30.0100.00711.82
5.2.20.0130.00811.71
5.2.10.0100.01011.76
5.2.00.0110.00611.71
5.1.60.0120.00311.71
5.1.50.0100.01011.71
5.1.40.0090.00711.71
5.1.30.0090.00911.71
5.1.20.0120.00511.71
5.1.10.0110.00411.71
5.1.00.0100.01011.71
5.0.50.0090.00411.71
5.0.40.0080.00911.71
5.0.30.0110.00211.71
5.0.20.0070.01011.71
5.0.10.0120.00311.71
5.0.00.0100.00611.71
4.4.90.0000.01011.71
4.4.80.0090.00011.71
4.4.70.0080.00011.71
4.4.60.0040.00511.71
4.4.50.0030.00511.71
4.4.40.0000.00811.71
4.4.30.0000.00711.71
4.4.20.0040.00411.71
4.4.10.0040.00411.71
4.4.00.0030.00711.71
4.3.110.0050.00511.71
4.3.100.0000.01011.71
4.3.90.0050.00511.71
4.3.80.0080.00011.71
4.3.70.0090.00011.71
4.3.60.0080.00011.71
4.3.50.0080.00311.71
4.3.40.0040.00411.71
4.3.30.0080.00011.71
4.3.20.0030.00311.71
4.3.10.0090.00011.71
4.3.00.0000.00811.71