3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '44-xkIolspO'; sscanf($text, '%d-%s', $one, $two); var_dump($one, $two); unset($one, $two); [$one, $two] = sscanf($text, '%d-%s'); var_dump($one, $two); unset($one, $two); [$one, $two] = explode('-', $text); var_dump($one, $two); unset($one, $two); [$one, $two] = str_getcsv($text, '-'); var_dump($one, $two); unset($one, $two); [$one, $two] = preg_split('/-/', $text); var_dump($one, $two); unset($one, $two);

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.120.0140.00722.50
8.4.110.0110.00922.63
8.4.100.0120.00918.16
8.4.90.0080.01018.71
8.4.80.0130.00718.30
8.4.70.0050.00418.40
8.4.60.0090.01218.65
8.4.50.0090.01118.95
8.4.40.0100.01017.79
8.4.30.0000.00818.61
8.4.20.0130.00721.64
8.4.10.0040.00419.90
8.3.250.0120.00618.81
8.3.240.0080.01117.04
8.3.230.0050.00316.54
8.3.220.0060.00416.96
8.3.210.0070.00816.87
8.3.200.0070.00616.76
8.3.190.0080.00716.91
8.3.180.0120.00816.65
8.3.170.0040.01519.02
8.3.160.0150.00317.00
8.3.150.0130.00716.92
8.3.140.0050.00317.00
8.3.130.0040.00418.60
8.3.120.0060.01018.91
8.3.110.0040.00420.94
8.3.100.0060.00316.62
8.3.90.0040.00426.77
8.3.80.0090.00318.30
8.3.70.0510.00017.97
8.3.60.0390.00717.97
8.3.50.0150.01017.97
8.3.40.0260.00917.97
8.3.30.0170.00317.97
8.3.20.0200.00017.97
8.3.10.0310.00017.97
8.3.00.0140.00717.97
8.2.290.0070.00520.44
8.2.280.0100.01018.57
8.2.270.0090.00916.98
8.2.260.0000.00918.56
8.2.250.0070.00716.87
8.2.240.0050.00519.03
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0070.01126.77
8.2.200.0090.00018.42
8.2.190.0210.00017.97
8.2.180.0240.00317.97
8.2.170.0270.01117.97
8.2.160.0310.00417.97
8.2.150.0380.00617.97
8.2.140.0410.00417.97
8.2.130.0410.00417.97
8.2.120.0370.01117.97
8.2.110.0580.00617.97
8.2.100.0380.01217.97
8.2.90.0450.00317.97
8.2.80.0240.01017.97
8.2.70.0260.00317.97
8.2.60.0190.00417.97
8.2.50.0240.00617.97
8.2.40.0080.01217.97
8.2.30.0230.00417.97
8.2.20.0240.00317.97
8.2.10.0320.00717.97
8.2.00.0340.00817.97
8.1.330.0090.01021.96
8.1.320.0040.00616.44
8.1.310.0120.00616.80
8.1.300.0110.00718.09
8.1.290.0040.00430.84
8.1.280.0430.00017.97
8.1.270.0430.00917.97
8.1.260.0420.01017.97
8.1.250.0140.01417.97
8.1.240.0240.00017.97
8.1.230.0220.00017.97
8.1.220.0130.00917.97
8.1.210.0210.00517.97
8.1.200.0270.00717.97
8.1.190.0380.00817.97
8.1.180.0290.00317.97
8.1.170.0290.00417.97
8.1.160.0270.00917.97
8.1.150.0280.00317.97
8.1.140.0400.00717.97
8.1.130.0410.00917.97
8.1.120.0260.01317.97
8.1.110.0370.00417.97
8.1.100.0310.00917.97
8.1.90.0320.00817.97
8.1.80.0280.01317.97
8.1.70.0260.01517.97
8.1.60.0360.00817.97
8.1.50.0390.00617.97
8.1.40.0400.00617.97
8.1.30.0360.00317.97
8.1.20.0310.00717.97
8.1.10.0340.01017.97
8.1.00.0340.00717.97
7.2.200.0150.00318.11

preferences:
57.55 ms | 403 KiB | 5 Q