3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Apple is a big tech company!"; $search = 'Apple Logo a'; $pattern = '/\b('.str_replace(' ', '|', preg_quote($search, '/')).')\b/i'; $arr = preg_grep($pattern, explode(' ', $string)); print_r($arr);

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.5.10.0050.00416.86
8.5.00.0180.01020.28
8.4.150.0030.00014.05
8.4.140.0120.00917.82
8.4.130.0120.00818.12
8.4.120.0100.01024.11
8.4.110.0050.00420.04
8.4.100.0150.00317.72
8.4.90.0100.01018.75
8.4.80.0110.00218.09
8.4.70.0120.00718.14
8.4.60.0070.01418.71
8.4.50.0050.00422.68
8.4.40.0170.00019.62
8.4.30.0100.01017.73
8.4.20.0140.00619.73
8.4.10.0040.00418.73
8.3.280.0130.00720.20
8.3.270.0130.00716.57
8.3.260.0050.00316.72
8.3.250.0110.00818.92
8.3.240.0120.00317.08
8.3.230.0140.00516.55
8.3.220.0050.00417.26
8.3.210.0090.00916.77
8.3.200.0060.00316.52
8.3.190.0110.00416.68
8.3.180.0080.01216.78
8.3.170.0120.00618.80
8.3.160.0170.00720.20
8.3.150.0090.00916.57
8.3.140.0060.00317.38
8.3.130.0130.00318.66
8.3.120.0040.00418.86
8.3.110.0000.00820.94
8.3.100.0060.00324.06
8.3.90.0150.00326.77
8.3.80.0040.00816.88
8.3.70.0070.01116.63
8.3.60.0090.01316.62
8.3.50.0060.00818.49
8.3.40.0120.00918.63
8.3.30.0040.01118.80
8.3.20.0000.00721.86
8.3.10.0040.00423.61
8.3.00.0040.00419.68
8.2.290.0100.00920.41
8.2.280.0060.00418.74
8.2.270.0100.01017.09
8.2.260.0090.00918.39
8.2.250.0080.00018.61
8.2.240.0040.00417.15
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0070.00317.00
8.2.190.0150.00016.63
8.2.180.0070.01118.66
8.2.170.0000.01522.96
8.2.160.0070.01119.13
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00019.37
8.2.120.0070.00026.35
8.2.110.0070.00719.38
8.2.100.0030.01017.97
8.2.90.0080.00017.88
8.2.80.0050.00318.90
8.2.70.0040.00417.63
8.2.60.0080.00017.88
8.2.50.0000.00818.10
8.2.40.0000.00919.53
8.2.30.0070.00019.51
8.2.20.0030.00618.18
8.2.10.0040.00418.11
8.2.00.0030.00518.12
8.1.330.0120.00721.86
8.1.320.0070.01316.29
8.1.310.0140.00018.35
8.1.300.0140.00416.30
8.1.290.0060.00318.88
8.1.280.0140.00025.92
8.1.270.0040.00423.95
8.1.260.0040.00426.35
8.1.250.0030.00328.09
8.1.240.0070.00319.25
8.1.230.0070.00422.69
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00617.38
8.1.190.0060.00317.25
8.1.180.0080.00018.10
8.1.170.0050.00318.64
8.1.160.0040.00418.82
8.1.150.0040.00418.95
8.1.140.0040.00417.71
8.1.130.0080.00018.94
8.1.120.0080.00017.58
8.1.110.0060.00317.44
8.1.100.0040.00417.47
8.1.90.0070.00217.54
8.1.80.0100.00217.49
8.1.70.0070.00417.52
8.1.60.0050.00917.59
8.1.50.0090.00417.54
8.1.40.0110.00217.63
8.1.30.0050.00917.81
8.1.20.0070.00617.76
8.1.10.0070.00517.61
8.1.00.0070.00617.55
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0030.00518.50
8.0.270.0040.00417.35
8.0.260.0030.00317.34
8.0.250.0030.00317.09
8.0.240.0070.00017.09
8.0.230.0030.00317.05
8.0.220.0090.00016.92
8.0.210.0060.00516.92
8.0.200.0060.00517.03
8.0.190.0040.00717.06
8.0.180.0080.00316.98
8.0.170.0020.01016.89
8.0.160.0090.00216.98
8.0.150.0070.00316.99
8.0.140.0040.00616.93
8.0.130.0070.00315.76
8.0.120.0050.00516.98
8.0.110.0100.00016.98
8.0.100.0060.00416.97
8.0.90.0060.00416.91
8.0.80.0090.00316.93
8.0.70.0030.00716.99
8.0.60.0050.00516.84
8.0.50.0040.00616.92
8.0.30.0090.00617.16
8.0.20.0100.00317.08
8.0.10.0070.00316.96
8.0.00.0070.00816.90
7.4.330.0030.00316.85
7.4.320.0060.00016.63
7.4.300.0100.00216.65
7.4.290.0080.00316.62
7.4.280.0100.00416.67
7.4.270.0070.00416.71
7.4.260.0050.00416.63
7.4.250.0040.00516.65
7.4.240.0020.00616.65
7.4.230.0050.00316.53
7.4.220.0010.00716.60
7.4.210.0050.00716.68
7.4.200.0040.00516.63
7.4.190.0020.00916.69
7.4.180.0110.00116.72
7.4.160.0070.00716.65
7.4.150.0060.00516.72
7.4.140.0070.01017.40
7.4.130.0110.00516.55
7.4.120.0080.00916.53
7.4.110.0090.00516.59
7.4.100.0090.00516.72
7.4.90.0070.00616.62
7.4.80.0080.00617.52
7.4.70.0090.00516.56
7.4.60.0040.00916.64
7.4.50.0070.00616.50
7.4.40.0090.00416.53
7.4.30.0040.00716.58
7.4.20.0090.00216.56
7.4.10.0050.00616.65
7.4.00.0080.00515.86
7.3.330.0100.00315.29
7.3.320.0080.00715.21
7.3.310.0110.00316.30
7.3.300.0090.00516.29
7.3.290.0110.00316.35
7.3.280.0150.00516.39
7.3.270.0130.00516.28
7.3.260.0120.00516.38
7.3.250.0140.00416.36
7.3.240.0130.00816.46
7.3.230.0110.00716.29
7.3.220.0150.00216.24
7.3.210.0160.00316.17
7.3.200.0160.00416.17
7.3.190.0120.00616.46
7.3.180.0090.00816.40
7.3.170.0110.00716.29
7.3.160.0130.00616.25
7.3.150.0170.00116.38
7.3.140.0130.00716.28
7.3.130.0140.00516.29
7.3.120.0100.00715.81
7.3.110.0130.00615.79
7.3.100.0120.00615.74
7.3.90.0100.00816.01
7.3.80.0110.00515.77
7.3.70.0150.00315.91
7.3.60.0100.00615.83
7.3.50.0110.00515.84
7.3.40.0100.00615.93
7.3.30.0120.00415.80
7.3.20.0140.00217.67
7.3.10.0120.00617.79
7.3.00.0140.00417.71
7.2.340.0100.00916.42
7.2.330.0140.00416.42
7.2.320.0120.00816.61
7.2.310.0130.00516.57
7.2.300.0130.00416.49
7.2.290.0110.00716.63
7.2.280.0160.00316.41
7.2.270.0090.00816.48
7.2.260.0110.00716.54
7.2.250.0120.00516.11
7.2.240.0080.01016.08
7.2.230.0100.00616.02
7.2.220.0120.00516.06
7.2.210.0090.00616.12
7.2.200.0110.00716.19
7.2.190.0100.00616.20
7.2.180.0080.00816.12
7.2.170.0080.00716.14
7.2.160.0160.00116.65
7.2.150.0150.00218.42
7.2.140.0130.00418.66
7.2.130.0120.00518.49
7.2.120.0070.01118.64
7.2.110.0140.00318.55
7.2.100.0100.00818.48
7.2.90.0080.01118.49
7.2.80.0130.00418.56
7.2.70.0130.00418.37
7.2.60.0110.00518.04
7.2.50.0140.00318.49
7.2.40.0550.00818.35
7.2.30.0520.00618.41
7.2.20.0390.00518.36
7.2.10.0390.00718.38
7.2.00.0420.00418.37
7.1.330.0100.00516.92
7.1.320.0130.00316.97
7.1.310.0070.00616.85
7.1.300.0100.00416.88
7.1.290.0110.00416.83
7.1.280.0110.00316.82
7.1.270.0070.00916.91
7.1.260.0080.00616.78
7.1.250.0120.00517.13
7.1.240.0140.00117.24
7.1.230.0110.00517.28
7.1.220.0090.00617.25
7.1.210.0140.00417.30
7.1.200.0090.00716.74
7.1.190.0160.00017.39
7.1.180.0140.00117.33
7.1.170.0160.00017.29
7.1.160.0530.00917.12
7.1.150.0460.00717.04
7.1.140.0370.00517.27
7.1.130.0580.00517.25
7.1.120.0460.00617.02
7.1.110.0540.00616.95
7.1.100.0550.00717.09
7.1.90.0440.00516.98
7.1.80.0520.00617.12
7.1.70.0480.01016.63
7.1.60.0560.01022.87
7.1.50.0620.00722.61
7.1.40.0150.01222.60
7.1.30.0600.00822.60
7.1.20.0720.00822.60
7.1.10.0580.00616.60
7.1.00.0520.00416.55
7.0.330.0110.00517.16
7.0.320.0070.00817.10
7.0.310.0100.00617.01
7.0.300.0100.00617.01
7.0.290.0070.00817.12
7.0.280.0120.00417.05
7.0.270.0150.00017.11
7.0.260.0130.00216.96
7.0.250.0090.00717.28
7.0.240.0080.00717.20
7.0.230.0120.00317.15
7.0.220.0110.00417.04
7.0.210.0130.00317.02
7.0.200.0090.00617.12
7.0.190.0110.00617.28
7.0.180.0160.00017.20
7.0.170.0140.00217.30
7.0.160.0140.00217.03
7.0.150.0120.00417.00
7.0.140.0090.00716.98
7.0.130.0130.00317.13
7.0.120.0080.00817.09
7.0.110.0130.00317.05
7.0.100.0100.00517.22
7.0.90.0140.00116.97
7.0.80.0150.00016.98
7.0.70.0100.00516.97
7.0.60.0120.00316.90
7.0.50.0100.00516.88
7.0.40.0140.00116.99
7.0.30.0110.00317.10
7.0.20.0110.00616.96
7.0.10.0110.00417.00
7.0.00.0130.00216.94
5.6.400.0140.00115.79
5.6.390.0110.00315.73
5.6.380.0070.00915.83
5.6.370.0080.00815.75
5.6.360.0080.00815.67
5.6.350.0080.00615.64
5.6.340.0110.00415.75
5.6.330.0130.00215.75
5.6.320.0100.00515.76
5.6.310.0110.00415.58
5.6.300.0090.00615.61
5.6.290.0080.00815.77
5.6.280.0120.00315.89
5.6.270.0090.00615.67
5.6.260.0130.00215.69
5.6.250.0080.00815.78
5.6.240.0100.00515.62
5.6.230.0120.00315.80
5.6.220.0110.00515.93
5.6.210.0130.00115.92
5.6.200.0110.00515.96
5.6.190.0100.00616.01
5.6.180.0100.00515.86
5.6.170.0110.00415.99
5.6.160.0110.00516.14
5.6.150.0100.00516.02
5.6.140.0110.00416.00
5.6.130.0070.00815.89
5.6.120.0150.00015.91
5.6.110.0110.00415.89
5.6.100.0140.00215.83
5.6.90.0080.00815.74
5.6.80.0100.00415.63
5.6.70.0070.00715.88
5.6.60.0070.00715.94
5.6.50.0130.00115.79
5.6.40.0090.00515.62
5.6.30.0100.00415.80
5.6.20.0140.00015.61
5.6.10.0130.00215.75
5.6.00.0120.00215.64

preferences:
162.84 ms | 403 KiB | 5 Q