3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'This is some-string to search in'; $str2 = '/some-string/'; if (preg($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.0120.05012.48
5.4.280.0120.04112.38
5.4.270.0100.04412.38
5.4.260.0140.04012.38
5.4.250.0120.05612.38
5.4.240.0140.04812.38
5.4.230.0200.03912.37
5.4.220.0100.04112.37
5.4.210.0080.04212.37
5.4.200.0090.04512.37
5.4.190.0090.06512.37
5.4.180.0090.04212.37
5.4.170.0130.04712.37
5.4.160.0100.04112.37
5.4.150.0080.05012.36
5.4.140.0100.05912.05
5.4.130.0190.07612.04
5.4.120.0090.04512.01
5.4.110.0100.05112.00
5.4.100.0070.03612.00
5.4.90.0120.05112.00
5.4.80.0090.04811.99
5.4.70.0090.04111.99
5.4.60.0080.04811.99
5.4.50.0090.04711.99
5.4.40.0140.04311.98
5.4.30.0070.04611.98
5.4.20.0050.04711.97
5.4.10.0090.03611.98
5.4.00.0110.03711.47
5.3.280.0190.07012.70
5.3.270.0090.04912.72
5.3.260.0080.05412.72
5.3.250.0110.04312.72
5.3.240.0240.06812.72
5.3.230.0090.04612.70
5.3.220.0080.04412.68
5.3.210.0150.07112.68
5.3.200.0150.04712.68
5.3.190.0180.08012.68
5.3.180.0090.05612.67
5.3.170.0060.04312.67
5.3.160.0050.04412.67
5.3.150.0080.05612.67
5.3.140.0090.04012.66
5.3.130.0070.04212.65
5.3.120.0080.05412.66
5.3.110.0220.09312.66
5.3.100.0050.05112.12
5.3.90.0080.04512.08
5.3.80.0100.04112.07
5.3.70.0090.04512.08
5.3.60.0150.06612.06
5.3.50.0100.04412.00
5.3.40.0050.04012.00
5.3.30.0080.04111.96
5.3.20.0090.04311.72
5.3.10.0140.06011.70
5.3.00.0250.05511.69
5.2.170.0090.0319.18
5.2.160.0120.0329.18
5.2.150.0070.0359.18
5.2.140.0150.0389.18
5.2.130.0120.0539.14
5.2.120.0120.0419.14
5.2.110.0090.0459.15
5.2.100.0100.0309.14
5.2.90.0100.0479.14
5.2.80.0060.0319.14
5.2.70.0050.0379.14
5.2.60.0070.0479.09
5.2.50.0050.0349.06
5.2.40.0070.0509.04
5.2.30.0120.0839.01
5.2.20.0030.0339.00
5.2.10.0090.0308.93
5.2.00.0130.0268.78
5.1.60.0060.0268.07
5.1.50.0100.0278.07
5.1.40.0060.0338.05
5.1.30.0180.0448.40
5.1.20.0050.0318.41
5.1.10.0070.0308.14
5.1.00.0060.0308.15
5.0.50.0070.0226.62
5.0.40.0070.0196.48
5.0.30.0050.0336.29
5.0.20.0090.0156.26
5.0.10.0050.0206.24
5.0.00.0030.0316.23
4.4.90.0060.0154.78
4.4.80.0050.0134.75
4.4.70.0020.0174.75
4.4.60.0040.0154.75
4.4.50.0050.0144.77
4.4.40.0040.0254.71
4.4.30.0080.0134.76
4.4.20.0050.0214.84
4.4.10.0060.0214.85
4.4.00.0050.0274.76
4.3.110.0090.0174.66
4.3.100.0050.0184.66
4.3.90.0060.0204.64
4.3.80.0060.0314.58
4.3.70.0020.0204.63
4.3.60.0030.0244.63
4.3.50.0050.0164.63
4.3.40.0030.0274.53
4.3.30.0030.0203.28
4.3.20.0020.0193.26
4.3.10.0020.0183.21
4.3.00.0130.0236.67

preferences:
136.74 ms | 1398 KiB | 7 Q