3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'This is some-string to search in'; $str2 = '/some-string/'; if (preg_match($str2, $str1) { echo "string found"; }

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.290.0210.06912.48
5.4.280.0170.07712.38
5.4.270.0110.09312.38
5.4.260.0190.08312.38
5.4.250.0110.08812.38
5.4.240.0160.07012.38
5.4.230.0190.07412.37
5.4.220.0110.06512.37
5.4.210.0230.10112.37
5.4.200.0210.10812.37
5.4.190.0110.10112.36
5.4.180.0220.10612.36
5.4.170.0400.11012.37
5.4.160.0280.08412.37
5.4.150.0130.06212.36
5.4.140.0130.05712.06
5.4.130.0070.04512.04
5.4.120.0080.05012.00
5.4.110.0260.09412.00
5.4.100.0120.06112.00
5.4.90.0190.07812.00
5.4.80.0180.07311.99
5.4.70.0080.05111.99
5.4.60.0110.07711.99
5.4.50.0210.06911.99
5.4.40.0350.09511.98
5.4.30.0170.07111.98
5.4.20.0250.07911.97
5.4.10.0130.05611.98
5.4.00.0090.04811.47
5.3.280.0110.08412.71
5.3.270.0110.10312.72
5.3.260.0220.11812.72
5.3.250.0100.08112.72
5.3.240.0310.07112.72
5.3.230.0200.10712.71
5.3.220.0210.07712.68
5.3.210.0150.06712.68
5.3.200.0200.09812.68
5.3.190.0250.07512.68
5.3.180.0140.07012.67
5.3.170.0270.08912.67
5.3.160.0100.06812.68
5.3.150.0360.12112.68
5.3.140.0390.09112.66
5.3.130.0230.08012.66
5.3.120.0130.05712.66
5.3.110.0210.08212.66
5.3.100.0140.07012.12
5.3.90.0120.06812.08
5.3.80.0140.06912.07
5.3.70.0360.09512.07
5.3.60.0240.09912.07
5.3.50.0190.08212.00
5.3.40.0080.05412.00
5.3.30.0080.03911.95
5.3.20.0080.04011.73
5.3.10.0050.04111.70
5.3.00.0080.05111.68
5.2.170.0130.0479.18
5.2.160.0050.0369.18
5.2.150.0080.0339.18
5.2.140.0070.0339.18
5.2.130.0050.0349.14
5.2.120.0060.0349.14
5.2.110.0110.0419.15
5.2.100.0330.0889.14
5.2.90.0060.0349.14
5.2.80.0100.0539.14
5.2.70.0180.0809.14
5.2.60.0090.0559.09
5.2.50.0140.0679.06
5.2.40.0190.0599.04
5.2.30.0080.0419.02
5.2.20.0100.0509.00
5.2.10.0070.0328.92
5.2.00.0070.0298.78
5.1.60.0030.0268.07
5.1.50.0060.0268.07
5.1.40.0090.0238.05
5.1.30.0080.0308.40
5.1.20.0160.0818.42
5.1.10.0060.0278.14
5.1.00.0090.0278.14
5.0.50.0120.0386.62
5.0.40.0060.0516.48
5.0.30.0160.0636.29
5.0.20.0130.0546.26
5.0.10.0060.0356.24
5.0.00.0080.0626.23
4.4.90.0070.0334.78
4.4.80.0060.0214.75
4.4.70.0130.0374.75
4.4.60.0130.0354.76
4.4.50.0140.0284.77
4.4.40.0120.0494.71
4.4.30.0110.0374.76
4.4.20.0140.0344.84
4.4.10.0100.0744.84
4.4.00.0050.0314.76
4.3.110.0050.0184.67
4.3.100.0080.0304.66
4.3.90.0090.0284.63
4.3.80.0040.0314.58
4.3.70.0040.0194.63
4.3.60.0030.0194.63
4.3.50.0050.0234.63
4.3.40.0060.0284.54
4.3.30.0020.0183.28
4.3.20.0000.0193.26
4.3.10.0100.0343.22
4.3.00.0130.01716.04

preferences:
138.17 ms | 1394 KiB | 7 Q