3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thumb = '/thumbs/gallery/75196/ab3101011e45405482110d475d365cbc.158x200zc' preg_match("|^(.+)\.(?<width>[0-9]+)(x(?<height>[0-9]+))?(?<zoom-crop>zc)?$|", $thumb, $matches); var_dump($matches); $thumb = '/thumbs/gallery/75196/ab3101011e45405482110d475d365cbc.158x200' preg_match("|^(.+)\.(?<width>[0-9]+)(x(?<height>[0-9]+))?(?<zoom-crop>zc)?$|", $thumb, $matches); var_dump($matches); $thumb = '/thumbs/gallery/75196/ab3101011e45405482110d475d365cbc.158zc' preg_match("|^(.+)\.(?<width>[0-9]+)(x(?<height>[0-9]+))?(?<zoom-crop>zc)?$|", $thumb, $matches); var_dump($matches); $thumb = '/thumbs/gallery/75196/ab3101011e45405482110d475d365cbc.158' preg_match("|^(.+)\.(?<width>[0-9]+)(x(?<height>[0-9]+))?(?<zoom-crop>zc)?$|", $thumb, $matches); var_dump($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)
5.4.350.0070.04212.02
5.4.340.0080.03712.01
5.4.320.0100.04912.50
5.4.310.0080.06212.49
5.4.300.0090.04612.49
5.4.290.0120.05412.49
5.4.280.0130.07512.39
5.4.270.0080.04612.39
5.4.260.0090.03812.39
5.4.250.0130.04212.39
5.4.240.0080.04412.39
5.4.230.0050.04412.38
5.4.220.0080.03712.38
5.4.210.0060.03812.38
5.4.200.0070.04412.38
5.4.190.0110.04012.38
5.4.180.0060.03712.38
5.4.170.0080.04512.39
5.4.160.0070.04312.38
5.4.150.0120.04312.38
5.4.140.0220.08712.07
5.4.130.0100.09212.05
5.4.120.0150.06712.01
5.4.110.0290.11212.01
5.4.100.0140.05712.01
5.4.90.0150.05612.01
5.4.80.0140.07412.01
5.4.70.0120.04112.01
5.4.60.0150.06912.01
5.4.50.0150.08212.00
5.4.40.0100.09111.99
5.4.30.0080.04711.99
5.4.20.0180.08111.99
5.4.10.0130.04012.00
5.4.00.0060.04011.48
5.3.290.0100.04112.80
5.3.280.0140.07712.71
5.3.270.0090.04412.72
5.3.260.0090.04912.72
5.3.250.0090.04112.72
5.3.240.0050.04412.72
5.3.230.0090.04412.71
5.3.220.0090.06412.68
5.3.210.0070.05412.68
5.3.200.0140.05312.68
5.3.190.0080.05312.68
5.3.180.0050.04112.67
5.3.170.0110.04012.66
5.3.160.0160.04312.67
5.3.150.0100.04312.67
5.3.140.0080.04012.66
5.3.130.0140.05012.66
5.3.120.0090.05012.66
5.3.110.0120.05212.66
5.3.100.0090.05812.12
5.3.90.0110.04212.08
5.3.80.0110.06312.07
5.3.70.0100.04612.07
5.3.60.0090.04712.06
5.3.50.0090.03612.00
5.3.40.0070.04812.00
5.3.30.0150.05311.95
5.3.20.0090.07111.73
5.3.10.0100.04311.70
5.3.00.0080.04511.68
5.2.170.0080.0339.18
5.2.160.0060.0339.18
5.2.150.0050.0379.18
5.2.140.0110.0589.18
5.2.130.0070.0439.14
5.2.120.0150.0709.14
5.2.110.0110.0819.14
5.2.100.0060.0309.14
5.2.90.0130.0319.14
5.2.80.0040.0379.14
5.2.70.0030.0379.14
5.2.60.0100.0559.09
5.2.50.0080.0379.06
5.2.40.0030.0349.03
5.2.30.0040.0329.01
5.2.20.0040.0309.00
5.2.10.0050.0298.93
5.2.00.0070.0358.79
5.1.60.0080.0278.07
5.1.50.0050.0398.06
5.1.40.0060.0288.04
5.1.30.0060.0318.40
5.1.20.0060.0348.42
5.1.10.0020.0328.14
5.1.00.0090.0338.14
5.0.50.0080.0526.62
5.0.40.0050.0326.48
5.0.30.0080.0386.29
5.0.20.0030.0286.26
5.0.10.0050.0236.24
5.0.00.0110.0806.24
4.4.90.0070.0324.78
4.4.80.0060.0214.75
4.4.70.0040.0294.76
4.4.60.0160.0314.75
4.4.50.0120.0574.77
4.4.40.0060.0264.71
4.4.30.0050.0314.76
4.4.20.0060.0344.84
4.4.10.0020.0224.85
4.4.00.0110.0324.76
4.3.110.0030.0224.67
4.3.100.0060.0234.66
4.3.90.0040.0224.63
4.3.80.0050.0304.59
4.3.70.0190.0314.63
4.3.60.0060.0214.63
4.3.50.0040.0194.63
4.3.40.0040.0294.54
4.3.30.0030.0173.28
4.3.20.0060.0563.26
4.3.10.0040.0203.22
4.3.00.0030.0278.30

preferences:
143.64 ms | 1394 KiB | 7 Q