3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = ['hello', 'hi', 'how r u', 'how are you', 'how r you', 'how are u']; $strings = ['Hello', 'Helloooo', 'How r youuuu', 'hell', 'w are y', 'heey hello', 'heeeey hello bro']; $regexp = implode('|', $parts); foreach ($strings as $string) { echo "$string: " . (preg_match("/($regexp)/i", $string) ? "true\n" : "false\n"); }

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.4.120.0090.01120.71
8.4.110.0140.00719.02
8.4.100.0080.01318.05
8.4.90.0120.00820.55
8.4.80.0130.00817.93
8.4.70.0090.00518.23
8.4.60.0110.01017.78
8.4.50.0070.01119.68
8.4.40.0040.00419.77
8.4.30.0100.01019.62
8.4.20.0100.01020.59
8.4.10.0000.00917.88
8.3.250.0040.00418.72
8.3.240.0110.00816.79
8.3.230.0060.00516.90
8.3.220.0140.00418.90
8.3.210.0100.00816.60
8.3.200.0110.00416.77
8.3.190.0110.00718.55
8.3.180.0100.00519.10
8.3.170.0120.00618.88
8.3.160.0060.01216.64
8.3.150.0060.00920.61
8.3.140.0090.00016.58
8.3.130.0200.00018.32
8.3.120.0090.00918.86
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0040.00417.97
8.3.70.0120.00316.75
8.3.60.0150.00618.55
8.3.50.0080.01018.47
8.3.40.0070.00718.85
8.3.30.0130.00318.80
8.3.20.0050.00221.89
8.3.10.0040.00423.65
8.3.00.0040.00423.61
8.2.290.0100.00716.74
8.2.280.0110.00318.19
8.2.270.0130.00617.42
8.2.260.0130.00718.93
8.2.250.0080.00016.68
8.2.240.0100.00017.34
8.2.230.0060.00322.58
8.2.220.0050.00537.54
8.2.210.0080.00026.77
8.2.200.0060.00318.41
8.2.190.0090.00620.38
8.2.180.0060.01016.75
8.2.170.0070.00722.96
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.50
8.2.110.0060.00322.38
8.2.100.0030.00917.96
8.2.90.0000.01022.45
8.2.80.0080.00017.97
8.2.70.0000.00917.93
8.2.60.0040.00418.16
8.2.50.0090.00018.10
8.2.40.0060.00319.30
8.2.30.0080.00019.33
8.2.20.0000.00718.05
8.2.10.0040.00419.21
8.2.00.0000.00919.43
8.1.330.0110.00716.82
8.1.320.0110.00816.37
8.1.310.0000.00918.16
8.1.300.0100.01018.33
8.1.290.0030.00630.84
8.1.280.0190.00325.92
8.1.270.0040.00418.88
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0070.00319.34
8.1.230.0090.00320.91
8.1.220.0040.00417.79
8.1.210.0050.00318.88
8.1.200.0060.00317.47
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0040.00418.83
8.1.150.0030.00518.87
8.1.140.0000.00822.27
8.1.130.0000.00817.60
8.1.120.0040.00417.64
8.1.110.0070.00017.59
8.1.100.0050.00217.61
8.1.90.0000.00717.59
8.1.80.0030.00517.52
8.1.70.0040.00417.50
8.1.60.0040.00717.75
8.1.50.0030.00617.64
8.1.40.0050.00217.70
8.1.30.0060.00317.67
8.1.20.0030.00717.67
8.1.10.0080.00317.67
8.1.00.0040.00417.59
8.0.300.0000.00719.85
8.0.290.0020.00516.88
8.0.280.0000.00718.35
8.0.270.0030.00316.97
8.0.260.0030.00316.87
8.0.250.0030.00317.01
8.0.240.0040.00417.12
8.0.230.0030.00317.09
8.0.220.0090.00017.00
8.0.210.0030.00317.01
8.0.200.0030.00317.01
8.0.190.0000.00717.17
8.0.180.0000.00716.97
8.0.170.0060.00317.09
8.0.160.0080.00016.93
8.0.150.0000.00716.99
8.0.140.0000.00717.04
8.0.130.0000.00613.48
8.0.120.0000.00716.94
8.0.110.0050.00316.92
8.0.100.0080.00016.84
8.0.90.0000.00717.03
8.0.80.0080.01117.05
8.0.70.0040.00416.87
8.0.60.0020.00517.09
8.0.50.0000.00716.81
8.0.30.0140.00317.34
8.0.20.0150.01117.40
8.0.10.0000.00717.12
8.0.00.0090.00816.93
7.4.330.0020.00216.68
7.4.320.0060.00016.70
7.4.300.0070.00016.70
7.4.290.0030.00316.81
7.4.280.0040.00416.76
7.4.270.0000.00716.72
7.4.260.0040.00416.63
7.4.250.0000.00716.82
7.4.240.0000.00816.82
7.4.230.0070.00016.93
7.4.220.0050.00316.80
7.4.210.0110.00416.92
7.4.200.0070.00016.75
7.4.160.0080.00816.68
7.4.140.0090.00917.86
7.4.130.0070.01316.67
7.4.120.0100.01316.65
7.4.110.0090.00916.54
7.4.100.0140.01116.75
7.4.90.0110.01116.71
7.4.80.0070.01119.39
7.4.70.0170.00016.63
7.4.60.0100.00716.73
7.4.50.0030.01016.68
7.4.40.0040.01216.60
7.4.00.0070.01015.18
7.3.330.0050.00013.39
7.3.320.0030.00313.13
7.3.310.0040.00416.47
7.3.300.0030.00316.43
7.3.290.0070.00016.33
7.3.280.0090.00616.44
7.3.260.0080.01116.61
7.3.240.0090.00816.72
7.3.230.0110.00916.35
7.3.210.0140.00316.63
7.3.200.0140.00316.65
7.3.190.0030.01716.50
7.3.180.0000.01816.75
7.3.170.0150.00316.55
7.3.160.0000.01716.86
7.3.00.0700.00715.07
7.2.330.0120.00617.01
7.2.320.0160.00316.68
7.2.310.0150.00916.91
7.2.300.0130.00516.90
7.2.290.0030.01516.73
7.2.130.0320.00715.32
7.2.120.0650.00315.31
7.2.110.1580.00715.21
7.2.100.0480.01015.38
7.2.90.0290.01115.21
7.2.80.0560.01015.36
7.2.70.0460.00315.12
7.2.60.0360.01015.07
7.2.50.0580.00615.27
7.2.40.0540.00015.03
7.2.30.0450.01015.39
7.2.20.0320.00315.20
7.2.10.0380.00614.99
7.2.00.0390.00315.11
7.1.250.0350.00314.16
7.0.330.0680.01413.67
5.6.380.0110.00514.04

preferences:
124.68 ms | 403 KiB | 5 Q