3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_1 = 'c5'; $string_2 = 'c11'; $string_3 = 'c329'; $string_4 = 'c78'; echo "Min: " . match (strnatcmp($string_1, $string_2)) { -1 => $string_1, 0 => 'same', 1 => $string_2 }; echo "\n---\nMin: " . match (strnatcmp($string_3, $string_4)) { -1 => $string_3, 0 => 'same', 1 => $string_4 };

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.4.130.0130.00717.77
8.4.120.0050.00520.39
8.4.110.0090.01018.65
8.4.100.0140.00817.59
8.4.90.0100.01117.67
8.4.80.0050.00417.86
8.4.70.0120.00717.63
8.4.60.0060.00318.81
8.4.50.0080.01217.48
8.4.40.0040.00417.69
8.4.30.0110.00720.41
8.4.20.0100.00618.01
8.4.10.0100.01019.32
8.3.260.0120.00616.56
8.3.250.0080.01118.85
8.3.240.0140.00516.37
8.3.230.0090.00716.64
8.3.220.0100.00817.10
8.3.210.0050.00316.54
8.3.200.0100.00918.31
8.3.190.0120.00717.12
8.3.180.0100.00916.67
8.3.170.0120.00620.54
8.3.160.0090.00920.51
8.3.150.0100.01017.01
8.3.140.0150.00418.29
8.3.130.0120.00618.57
8.3.120.0000.01020.59
8.3.110.0030.00620.94
8.3.100.0110.00424.06
8.3.90.0090.00626.77
8.3.80.0130.00317.97
8.3.70.0030.01318.30
8.3.60.0150.00318.37
8.3.50.0110.00316.68
8.3.40.0100.01021.90
8.3.30.0070.00720.29
8.3.20.0110.01125.66
8.3.10.0140.00725.66
8.3.00.0100.01325.66
8.2.290.0100.00920.44
8.2.280.0110.01019.78
8.2.270.0070.01117.00
8.2.260.0150.00016.92
8.2.250.0030.00516.66
8.2.240.0040.01218.73
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0140.00426.77
8.2.200.0110.00716.63
8.2.190.0130.00316.75
8.2.180.0160.00318.16
8.2.170.0080.00818.88
8.2.160.0070.01022.96
8.2.150.0200.00325.66
8.2.140.0130.00625.66
8.2.130.0120.00925.66
8.2.120.0070.01125.66
8.2.110.0130.00625.66
8.2.100.0070.01425.66
8.2.90.0160.00625.66
8.2.80.0040.01425.66
8.2.70.0120.00625.66
8.2.60.0100.00725.66
8.2.50.0110.01125.66
8.2.40.0070.01025.66
8.2.30.0120.00325.66
8.2.20.0070.01025.66
8.2.10.0110.01125.66
8.2.00.0110.01125.66
8.1.330.0100.00916.60
8.1.320.0100.01316.48
8.1.310.0080.00016.16
8.1.300.0190.00015.73
8.1.290.0070.00430.84
8.1.280.0110.00425.92
8.1.270.0090.00625.66
8.1.260.0110.00725.66
8.1.250.0140.00525.66
8.1.240.0000.01525.66
8.1.230.0030.01225.66
8.1.220.0090.00925.66
8.1.210.0070.00725.66
8.1.200.0100.01025.66
8.1.190.0070.01425.66
8.1.180.0090.01225.66
8.1.170.0040.01425.66
8.1.160.0120.00625.66
8.1.150.0110.00725.66
8.1.140.0160.00625.66
8.1.130.0040.02125.66
8.1.120.0090.00925.66
8.1.110.0130.00725.66
8.1.100.0170.00725.66
8.1.90.0130.00625.66
8.1.80.0130.00325.66
8.1.70.0140.00425.66
8.1.60.0090.00625.66
8.1.50.0070.00725.66
8.1.40.0000.01525.66
8.1.30.0060.01325.66
8.1.20.0140.00425.66
8.1.10.0120.00625.66
8.1.00.0060.01325.66

preferences:
26.56 ms | 403 KiB | 5 Q