3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'CF12:10'; preg_match('/^(\D+)(\d+):(.*)$/', $input, $matches); array_shift($matches); print_r($matches);

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.10.0130.00518.85
8.5.00.0140.01320.18
8.4.150.0020.00114.05
8.4.140.0100.01117.63
8.4.130.0130.00818.76
8.4.120.0060.00222.31
8.4.110.0140.00718.80
8.4.100.0120.00817.97
8.4.90.0110.00920.73
8.4.80.0090.01124.43
8.4.70.0110.00718.86
8.4.60.0090.00220.63
8.4.50.0130.00718.51
8.4.40.0030.00617.77
8.4.30.0070.00318.47
8.4.20.0070.01318.09
8.4.10.0160.00319.73
8.3.280.0100.01020.22
8.3.270.0100.00916.60
8.3.260.0130.00716.48
8.3.250.0050.00416.91
8.3.240.0070.00716.48
8.3.230.0090.01116.44
8.3.220.0120.00518.73
8.3.210.0110.00716.75
8.3.200.0050.00416.62
8.3.190.0120.00817.10
8.3.180.0080.01118.79
8.3.170.0160.00317.36
8.3.160.0120.00318.54
8.3.150.0140.00417.00
8.3.140.0150.00416.82
8.3.130.0030.00616.55
8.3.120.0120.00318.67
8.3.110.0030.00620.94
8.3.100.0030.00724.06
8.3.90.0090.00926.77
8.3.80.0000.01016.50
8.3.70.0040.01116.63
8.3.60.0040.01118.18
8.3.50.0100.00823.55
8.3.40.0070.00718.97
8.3.30.0090.00918.70
8.3.20.0040.00420.78
8.3.10.0090.00021.65
8.3.00.0080.00021.95
8.2.290.0050.00418.98
8.2.280.0130.00618.41
8.2.270.0000.01816.74
8.2.260.0000.00816.96
8.2.250.0120.00318.76
8.2.240.0080.01119.13
8.2.230.0030.00522.58
8.2.220.0190.00037.54
8.2.210.0050.00326.77
8.2.200.0040.00416.50
8.2.190.0180.00018.41
8.2.180.0070.00718.79
8.2.170.0040.01122.96
8.2.160.0070.01020.22
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0080.00019.61
8.2.110.0060.00319.11
8.2.100.0060.00617.77
8.2.90.0000.00817.75
8.2.80.0050.00318.73
8.2.70.0050.00317.75
8.2.60.0040.00417.75
8.2.50.0040.00417.75
8.2.40.0050.00218.03
8.2.30.0100.00217.83
8.2.20.0010.00618.69
8.2.10.0040.00718.45
8.2.00.0080.00418.46
8.1.330.0130.00616.50
8.1.320.0120.00717.97
8.1.310.0110.00716.38
8.1.300.0040.00420.25
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0050.00322.08
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00321.86
8.1.230.0120.00020.92
8.1.220.0040.00418.64
8.1.210.0040.00418.77
8.1.200.0050.00317.35
8.1.190.0040.00817.25
8.1.180.0040.00418.10
8.1.170.0000.00818.67
8.1.160.0070.00518.19
8.1.150.0100.00218.12
8.1.140.0100.00119.06
8.1.130.0050.00618.91
8.1.120.0090.00517.58
8.1.110.0070.00517.57
8.1.100.0100.00217.52
8.1.90.0030.00817.57
8.1.80.0080.00417.46
8.1.70.0030.00817.50
8.1.60.0080.00517.74
8.1.50.0120.00117.63
8.1.40.0080.00517.66
8.1.30.0060.00717.73
8.1.20.0080.00617.76
8.1.10.0080.00517.62
8.1.00.0090.00417.57
8.0.300.0070.00018.77
8.0.290.0060.00316.88
8.0.280.0110.00017.60
8.0.270.0050.00717.53
8.0.260.0040.00518.44
8.0.250.0030.00716.94
8.0.240.0020.00816.90
8.0.230.0030.00716.93
8.0.220.0040.00516.88
8.0.210.0020.00716.89
8.0.200.0070.00216.89
8.0.190.0040.00416.86
8.0.180.0070.00216.90
8.0.170.0020.00716.84
8.0.160.0070.00216.80
8.0.150.0040.00516.86
8.0.140.0090.00016.79
8.0.130.0050.00315.06
8.0.120.0030.00516.83
8.0.110.0040.00516.99
8.0.100.0030.00516.89
8.0.90.0040.00416.93
8.0.80.0050.00516.84
8.0.70.0030.00516.89
8.0.60.0040.00416.85
8.0.50.0050.00316.86
8.0.30.0040.00616.88
8.0.20.0060.00617.01
8.0.10.0030.00517.02
8.0.00.0060.00516.98
7.4.330.0070.00216.76
7.4.320.0100.00116.65
7.4.300.0080.00316.67
7.4.290.0040.00816.69
7.4.280.0080.00416.61
7.4.270.0120.00016.64
7.4.260.0080.00316.68
7.4.250.0070.00516.71
7.4.240.0060.00316.76
7.4.230.0070.00216.72
7.4.220.0030.00516.61
7.4.210.0060.00416.66
7.4.200.0070.00216.66
7.4.190.0060.00316.68
7.4.180.0040.00516.73
7.4.160.0050.00416.80
7.4.150.0030.00616.63
7.4.140.0060.00316.63
7.4.130.0060.00616.64
7.4.120.0030.00916.67
7.4.110.0060.00416.67
7.4.100.0070.00416.78
7.4.90.0070.00516.58
7.4.80.0070.00617.13
7.4.70.0050.00516.67
7.4.60.0030.00716.69
7.4.50.0040.00616.54
7.4.40.0060.00616.58
7.4.30.0050.00416.61
7.4.20.0080.00516.51
7.4.10.0030.00816.49
7.4.00.0040.00616.63
7.3.330.0060.00616.55
7.3.320.0040.00814.96
7.3.310.0070.00216.39
7.3.300.0060.00216.35
7.3.290.0070.00416.34
7.3.280.0040.00616.29
7.3.270.0040.00416.33
7.3.260.0060.00416.33
7.3.250.0060.00316.36
7.3.240.0060.00216.37
7.3.230.0050.00616.43
7.3.220.0040.00416.35
7.3.210.0070.00416.35
7.3.200.0050.00516.33
7.3.190.0070.00516.32
7.3.180.0070.00316.38
7.3.170.0070.00316.35
7.3.160.0060.00416.38
7.3.150.0040.00516.33
7.3.140.0040.00716.36
7.3.130.0070.00416.30
7.3.120.0050.00616.32
7.3.110.0040.00716.32
7.3.100.0050.00516.32
7.3.90.0070.00416.56
7.3.80.0080.00316.38
7.3.70.0070.00416.36
7.3.60.0090.00216.41
7.3.50.0070.00516.39
7.3.40.0080.00316.37
7.3.30.0040.00716.39
7.3.20.0080.00317.86
7.3.10.0080.00417.72
7.3.00.0060.00617.69
7.2.340.0060.00216.42
7.2.330.0050.00616.46
7.2.320.0070.00316.45
7.2.310.0040.00616.50
7.2.300.0070.00516.50
7.2.290.0080.00316.46
7.2.280.0040.00516.43
7.2.270.0080.00416.43
7.2.260.0060.00616.43
7.2.250.0050.00616.47
7.2.240.0080.00316.50
7.2.230.0040.00816.50
7.2.220.0060.00516.39
7.2.210.0060.00616.45
7.2.200.0070.00516.46
7.2.190.0080.00416.52
7.2.180.0080.00316.55
7.2.170.0080.00416.56
7.2.160.0060.00616.56
7.2.150.0070.00717.93
7.2.140.0090.00417.99
7.2.130.0080.00518.01
7.2.120.0100.00317.95
7.2.110.0060.00617.97
7.2.100.0130.00517.97
7.2.90.0070.00617.94
7.2.80.0070.00518.02
7.2.70.0090.00517.95
7.2.60.0040.00917.91
7.2.50.0080.00617.91
7.2.40.0070.00518.07
7.2.30.0080.00417.98
7.2.20.0040.00917.88
7.2.10.0050.00817.96
7.2.00.0060.00618.00

preferences:
142.32 ms | 403 KiB | 5 Q