3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'hello | Hello there price | Lets talk about our support. how are you ?| Im fine '; $word = "price"; if (preg_match('~^\h*' . preg_quote($word, '~') . '\h*\|\h*\K.*\S~m', $data, $match)) { echo $match[0]; }

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.3.130.0040.00418.50
8.3.120.0120.00618.93
8.3.110.0150.00320.94
8.3.100.0060.00324.06
8.3.90.0050.00326.77
8.3.80.0090.00016.88
8.3.70.0110.01116.50
8.3.60.0140.00318.56
8.3.50.0130.00523.66
8.3.40.0070.00718.83
8.3.30.0080.00818.79
8.3.20.0040.00420.90
8.3.10.0080.00021.90
8.3.00.0070.00021.69
8.2.250.0070.01118.93
8.2.240.0030.00617.01
8.2.230.0050.00322.58
8.2.220.0080.00037.54
8.2.210.0100.00726.77
8.2.200.0080.00416.63
8.2.190.0110.00418.41
8.2.180.0120.00618.79
8.2.170.0090.00919.08
8.2.160.0070.00722.96
8.2.150.0050.00525.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0030.00721.19
8.2.100.0040.00817.84
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0040.00418.34
8.2.30.0000.00719.42
8.2.20.0000.00718.20
8.2.10.0000.00719.18
8.2.00.0040.00419.27
8.1.300.0110.00016.64
8.1.290.0080.00018.88
8.1.280.0040.01225.92
8.1.270.0070.00322.11
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0040.00722.65
8.1.230.0060.00620.89
8.1.220.0050.00318.69
8.1.210.0000.00818.77
8.1.200.0000.01017.48
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0080.00018.83
8.1.160.0000.00718.82
8.1.150.0030.00518.93
8.1.140.0000.00720.79
8.1.130.0000.00720.17
8.1.120.0030.00717.63
8.1.110.0030.00517.53
8.1.100.0000.00717.63
8.1.90.0030.00417.52
8.1.80.0040.00417.57
8.1.70.0040.00417.58
8.1.60.0050.00317.72
8.1.50.0040.00417.56
8.1.40.0040.00417.69
8.1.30.0000.00817.70
8.1.20.0040.00417.89
8.1.10.0000.00817.73
8.1.00.0030.00617.55
8.0.300.0000.00720.04
8.0.290.0080.00016.75
8.0.280.0070.00018.49
8.0.270.0040.00418.08
8.0.260.0030.00320.02
8.0.250.0030.00317.05
8.0.240.0000.00816.98
8.0.230.0070.00017.06
8.0.220.0070.00017.07
8.0.210.0040.00416.93
8.0.200.0040.00417.07
8.0.190.0000.00717.06
8.0.180.0040.00417.03
8.0.170.0040.00817.07
8.0.160.0030.00317.04
8.0.150.0030.00317.02
8.0.140.0040.00417.02
8.0.130.0040.00413.53
8.0.120.0040.00417.04
8.0.110.0040.00416.91
8.0.100.0050.00217.10
8.0.90.0000.00717.07
8.0.80.0050.01016.97
8.0.70.0040.00416.99
8.0.60.0040.00416.98
8.0.50.0040.00316.88
8.0.30.0100.00717.08
8.0.20.0070.01317.07
8.0.10.0040.00416.93
8.0.00.0040.01416.71
7.4.330.0000.00616.71
7.4.320.0040.00416.68
7.4.300.0000.00916.75
7.4.290.0000.00716.65
7.4.280.0030.00516.67
7.4.270.0050.00316.77
7.4.260.0030.00313.42
7.4.250.0030.00316.73
7.4.240.0020.00516.77
7.4.230.0000.00716.50
7.4.220.0000.00716.74
7.4.210.0080.00816.74
7.4.200.0000.00816.54
7.4.140.0130.00717.86
7.4.130.0090.01116.74
7.4.120.0090.00916.76
7.4.110.0030.01316.54
7.4.100.0040.01316.71
7.4.90.0080.00816.86
7.4.80.0110.01319.39
7.4.70.0120.00316.69
7.4.60.0030.01316.67
7.4.50.0090.00716.70
7.4.40.0030.01616.70
7.4.20.0100.00616.49
7.4.10.0050.01116.35
7.4.00.0070.01116.73
7.3.330.0040.00416.40
7.3.320.0020.00313.30
7.3.310.0000.00716.41
7.3.300.0000.00716.47
7.3.290.0040.00416.41
7.3.280.0090.01216.38
7.3.260.0110.00716.42
7.3.240.0090.00816.58
7.3.230.0110.01116.60
7.3.210.0120.00616.45
7.3.200.0060.01616.44
7.3.190.0070.01116.60
7.3.180.0120.00316.78
7.3.170.0100.01016.57
7.3.160.0030.01416.48
7.3.140.0090.00916.53
7.3.130.0100.01016.38
7.3.120.0090.00916.53
7.3.110.0100.00816.64
7.3.100.0130.00516.52
7.3.90.0100.00616.44
7.3.80.0130.00616.59
7.3.70.0070.01116.58
7.3.60.0080.01016.40
7.3.50.0130.00716.48
7.3.40.0070.00916.39
7.3.30.0070.01016.47
7.3.20.0090.00816.50
7.3.10.0070.01216.50
7.3.00.0120.01016.41
7.2.330.0100.00716.71
7.2.320.0120.00616.88
7.2.310.0100.00616.81
7.2.300.0150.00916.82
7.2.290.0090.00916.76
7.2.270.0160.00116.68
7.2.260.0080.01116.66
7.2.250.0080.00816.75
7.2.240.0060.01316.70
7.2.230.0040.01316.82
7.2.220.0060.00916.76
7.2.210.0090.01016.62
7.2.200.0110.01016.65
7.2.190.0110.00716.66
7.2.180.0130.00716.80
7.2.170.0110.00816.73
7.2.160.0130.00516.57
7.2.150.0060.01216.77
7.2.140.0140.00716.68
7.2.130.0110.00916.81
7.2.120.0140.00816.73
7.2.110.0130.01016.75
7.2.100.0060.01116.82
7.2.90.0180.00616.82
7.2.80.0100.00916.80
7.2.70.0110.00816.80
7.2.60.0080.01416.69
7.2.50.0100.00716.84
7.2.40.0090.00816.85
7.2.30.0080.01216.88
7.2.20.0110.01116.75
7.2.10.0050.01616.69
7.2.00.0100.00716.85

preferences:
26.14 ms | 403 KiB | 5 Q