3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '/server localhost:3306 root:some pass with spaces & a : colon'; preg_match('~/server ([^:]+):(\d+) (.+)~', $string, $m); array_shift($m); // remove the fullstring match var_export($m);

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.00.0150.00620.16
8.4.150.0030.00014.05
8.4.140.0140.00717.77
8.4.130.0080.01217.74
8.4.120.0060.00220.81
8.4.110.0070.00222.51
8.4.100.0110.01017.72
8.4.90.0130.00718.53
8.4.80.0090.01318.06
8.4.70.0120.01017.90
8.4.60.0070.00318.60
8.4.50.0130.00817.82
8.4.40.0110.01119.54
8.4.30.0070.01320.37
8.4.20.0170.00319.88
8.4.10.0040.00420.32
8.3.280.0120.00918.59
8.3.270.0120.00716.48
8.3.260.0050.00516.59
8.3.250.0110.00818.63
8.3.240.0110.00818.63
8.3.230.0120.00516.66
8.3.220.0040.00417.20
8.3.210.0070.00116.94
8.3.200.0080.00116.59
8.3.190.0110.00417.05
8.3.180.0060.00618.82
8.3.170.0110.00716.61
8.3.160.0070.01116.51
8.3.150.0040.00417.20
8.3.140.0040.00417.05
8.3.130.0100.00018.47
8.3.120.0030.01318.75
8.3.110.0030.00620.94
8.3.100.0080.00024.06
8.3.90.0050.00326.77
8.3.80.0030.00618.30
8.3.70.0160.00316.73
8.3.60.0070.00716.73
8.3.50.0090.01220.11
8.3.40.0200.00019.05
8.3.30.0090.00919.02
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0150.00420.11
8.2.280.0050.00422.55
8.2.270.0110.00716.55
8.2.260.0030.01419.04
8.2.250.0040.00416.90
8.2.240.0050.00317.05
8.2.230.0000.00922.58
8.2.220.0000.00937.54
8.2.210.0150.00026.77
8.2.200.0030.00616.63
8.2.190.0210.00016.63
8.2.180.0180.00425.92
8.2.170.0060.00919.14
8.2.160.0090.01222.96
8.2.150.0100.00725.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0070.00026.16
8.2.110.0100.00022.25
8.2.100.0080.00417.52
8.2.90.0080.00017.88
8.2.80.0030.00518.88
8.2.70.0050.00317.75
8.2.60.0030.00617.75
8.2.50.0000.00817.98
8.2.40.0040.00418.01
8.2.30.0070.00018.22
8.2.20.0000.00720.44
8.2.10.0000.00817.89
8.2.00.0060.00319.20
8.1.330.0120.00722.04
8.1.320.0140.00616.20
8.1.310.0070.00316.53
8.1.300.0090.00918.57
8.1.290.0000.00930.84
8.1.280.0140.00725.92
8.1.270.0000.00923.99
8.1.260.0080.00026.35
8.1.250.0100.00528.09
8.1.240.0110.00023.83
8.1.230.0040.00719.14
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.48
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0040.00418.85
8.1.150.0040.00418.72
8.1.140.0050.00217.51
8.1.130.0040.00418.83
8.1.120.0040.00417.54
8.1.110.0000.00717.55
8.1.100.0050.00317.59
8.1.90.0040.00417.57
8.1.80.0040.00617.44
8.1.70.0060.00317.54
8.1.60.0000.00717.56
8.1.50.0070.00017.51
8.1.40.0280.00317.64
8.1.30.0260.00617.74
8.1.20.0270.00317.69
8.1.10.0250.00317.65
8.1.00.0230.00717.57
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.39
8.0.270.0040.00316.95
8.0.260.0070.00018.46
8.0.250.0040.00416.93
8.0.240.0070.00016.90
8.0.230.0000.00716.91
8.0.220.0070.00016.96
8.0.210.0000.00716.95
8.0.200.0000.00616.96
8.0.190.0050.00317.01
8.0.180.0040.00417.03
8.0.170.0240.00016.93
8.0.160.0210.00316.83
8.0.150.0200.00516.95
8.0.140.0200.00316.90
8.0.130.0150.01116.85
8.0.120.0240.00016.99
8.0.110.0150.01116.86
8.0.100.0170.00616.96
8.0.90.0230.00017.01
8.0.80.0160.00616.98
8.0.70.0250.00016.91
8.0.60.0270.00016.93
8.0.50.0190.00417.01
8.0.30.0150.01016.98
8.0.20.0250.00016.95
8.0.10.0230.00016.99
7.4.330.0000.00615.55
7.4.320.0040.00416.63
7.4.300.0040.00416.64
7.4.290.0030.00516.70
7.4.280.0200.00716.58
7.4.270.0130.01016.68
7.4.260.0180.00716.70
7.4.250.0210.00016.57
7.4.240.0150.00416.62
7.4.230.0210.00316.57
7.4.220.0190.00416.63
7.4.210.0160.00516.52
7.4.200.0170.00416.63
7.4.190.0160.00716.72
7.4.180.0190.00316.84
7.4.160.0210.00016.58
7.4.150.0130.00916.57
7.4.140.0200.00016.61
7.4.130.0140.00616.64
7.4.120.0200.00416.65
7.4.110.0090.00916.50
7.4.100.0210.00016.60
7.4.90.0140.00616.64
7.4.80.0190.00016.56
7.4.70.0220.00016.62
7.4.60.0170.00016.71
7.4.50.0060.00316.60
7.4.40.0000.00916.43
7.4.30.0030.00316.36
7.4.20.0040.00416.52
7.4.10.0080.00016.52
7.4.00.0030.00516.42

preferences:
39.07 ms | 403 KiB | 5 Q