3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Павел Дуров fsdf sdf sdf TEXT; $filter = 'Павел Дуров'; $filter = mb_strtolower($filter); $parts = explode(' ', $filter); $parts = array_map('trim', $parts); $parts = array_map('preg_quote', $parts); $filter = implode('.*', $parts); // echo preg_match("~{$filter}~uis", $text); $a = preg_split('/[x00-x20]+/', $text); $a = array_map('trim', $a); $a = array_filter($a); print_r($a);

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.60.0140.00716.50
8.3.50.0130.00316.65
8.3.40.0150.00018.91
8.3.30.0100.00318.81
8.3.20.0070.00020.34
8.3.10.0080.00023.48
8.3.00.0040.00422.14
8.2.180.0140.00416.63
8.2.170.0090.00622.96
8.2.160.0060.00919.04
8.2.150.0110.00724.18
8.2.140.0030.00524.66
8.2.130.0050.00320.92
8.2.120.0060.00326.35
8.2.110.0030.00621.05
8.2.100.0070.00418.03
8.2.90.0000.00819.05
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0080.00017.91
8.2.50.0030.00518.10
8.2.40.0060.00320.42
8.2.30.0080.00020.90
8.2.20.0040.00418.03
8.2.10.0060.00318.19
8.2.00.0050.00218.15
8.1.280.0120.00925.92
8.1.270.0040.00422.24
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00024.03
8.1.230.0060.00619.09
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0110.00017.47
8.1.190.0080.00017.35
8.1.180.0000.01018.10
8.1.170.0000.00719.02
8.1.160.0070.00019.09
8.1.150.0000.00820.82
8.1.140.0000.00719.52
8.1.130.0030.00319.00
8.1.120.0040.00417.62
8.1.110.0000.00817.55
8.1.100.0030.00517.52
8.1.90.0040.00417.52
8.1.80.0040.00417.62
8.1.70.0030.00317.62
8.1.60.0080.00017.71
8.1.50.0040.00417.72
8.1.40.0000.00817.63
8.1.30.0000.00817.69
8.1.20.0050.00317.86
8.1.10.0030.00617.74
8.1.00.0050.00317.54
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0040.00418.48
8.0.270.0030.00317.28
8.0.260.0000.00717.04
8.0.250.0000.00717.23
8.0.240.0080.00017.16
8.0.230.0000.00717.07
8.0.220.0000.00817.14
8.0.210.0050.00217.03
8.0.200.0000.00717.18
8.0.190.0030.00617.21
8.0.180.0070.00417.14
8.0.170.0050.00217.17
8.0.160.0070.00017.12
8.0.150.0070.00016.98
8.0.140.0000.00817.08
8.0.130.0050.00013.54
8.0.120.0050.00217.00
8.0.110.0000.00717.13
8.0.100.0040.00417.02
8.0.90.0080.00016.95
8.0.80.0000.01717.12
8.0.70.0000.00717.17
8.0.60.0040.00416.98
8.0.50.0040.00417.17
8.0.30.0140.00517.20
8.0.20.0110.00917.40
8.0.10.0050.00317.17
8.0.00.0100.00716.99
7.4.330.0060.00015.55
7.4.320.0030.00316.85
7.4.300.0030.00316.64
7.4.290.0020.00516.71
7.4.280.0000.00716.62
7.4.270.0030.00316.74
7.4.260.0000.00816.86
7.4.250.0070.00016.84
7.4.240.0040.00416.76
7.4.230.0000.00716.83
7.4.220.0130.00616.93
7.4.210.0080.00716.87
7.4.200.0000.00716.82
7.4.160.0110.00516.59
7.4.150.0050.01517.40
7.4.140.0120.00917.86
7.4.130.0140.00316.68
7.4.120.0130.00416.69
7.4.110.0070.01016.69
7.4.100.0120.01216.46
7.4.90.0060.01316.95
7.4.80.0130.01019.39
7.4.70.0140.00316.54
7.4.60.0110.00616.74
7.4.50.0070.00716.52
7.4.40.0030.01316.68
7.4.30.0100.00616.70
7.4.10.0100.01015.17
7.4.00.0030.01315.36
7.3.330.0060.00013.40
7.3.320.0000.00613.41
7.3.310.0000.00716.58
7.3.300.0070.00016.32
7.3.290.0030.00316.51
7.3.280.0090.00716.52
7.3.270.0100.01317.40
7.3.260.0110.00916.43
7.3.250.0110.00716.49
7.3.240.0110.00816.67
7.3.230.0060.01316.75
7.3.210.0070.01116.65
7.3.200.0130.00716.29
7.3.190.0040.01216.64
7.3.180.0090.00616.54
7.3.170.0080.00816.27
7.3.160.0130.00316.38
7.3.130.0070.01114.93
7.3.120.0070.00914.90
7.3.110.0100.00714.98
7.3.100.0080.00614.81
7.3.90.0080.00515.05
7.3.80.0060.00715.04
7.3.70.0090.00614.92
7.3.60.0060.00814.75
7.3.50.0100.00614.90
7.3.40.0070.00614.85
7.3.30.0050.01014.82
7.3.20.0080.00616.73
7.3.10.0050.00816.74
7.3.00.0060.00616.57
7.2.330.0130.00716.54
7.2.320.0130.00316.71
7.2.310.0120.00616.74
7.2.300.0100.01316.63
7.2.290.0070.01516.68
7.2.260.0090.00615.10
7.2.250.0040.01415.09
7.2.240.0060.01115.08
7.2.230.0040.01015.02
7.2.220.0100.00715.03
7.2.210.0080.00615.26
7.2.200.0020.01014.96
7.2.190.0070.00615.12
7.2.180.0030.01215.08
7.2.170.0050.00914.91
7.2.160.0020.01315.04
7.2.150.0060.01016.87
7.2.140.0020.01316.80
7.2.130.0060.00616.83
7.2.120.0050.01216.87
7.2.110.0110.00616.83
7.2.100.0080.00616.92
7.2.90.0180.00816.28
7.2.80.0180.01016.26
7.2.70.0250.00516.35
7.2.60.0210.00816.41
7.2.50.0250.01016.32
7.2.40.0270.00616.46
7.2.30.0190.00916.44
7.2.20.0250.00416.26
7.2.10.0230.00816.21
7.2.00.0220.00916.24
7.1.330.0050.01015.97
7.1.320.0060.00915.81
7.1.310.0040.00715.78
7.1.300.0100.00515.75
7.1.290.0050.01015.92
7.1.280.0070.00715.82
7.1.270.0040.00415.93
7.1.260.0030.01015.95
7.1.250.0070.01015.80
7.1.240.0070.00715.85
7.1.230.0030.00916.00
7.1.220.0040.00716.04
7.1.210.0150.00514.74
7.1.200.0290.00615.03
7.1.190.0440.01015.08
7.1.180.0330.00314.90
7.1.170.0330.00914.93
7.1.160.0220.00614.93
7.1.150.0200.01215.02
7.1.140.0220.00714.87
7.1.130.0240.00714.91
7.1.120.0300.00514.79
7.1.110.0390.00615.04
7.1.100.0510.00614.97
7.1.90.0240.00914.90
7.1.80.0220.00815.02
7.1.70.0240.00914.82
7.1.60.0360.00723.95
7.1.50.0290.01323.85
7.1.40.0340.01123.95
7.1.30.0370.01123.77
7.1.20.0480.00823.90
7.1.10.0250.00614.86
7.1.00.0200.01214.92
7.0.330.0030.00715.21
7.0.320.0050.00315.29
7.0.310.0250.00614.58
7.0.300.0230.01014.51
7.0.290.0240.00314.60
7.0.280.0330.00514.69
7.0.270.0300.01014.45
7.0.260.0380.00514.65
7.0.250.0350.00914.42
7.0.240.0510.00714.58
7.0.230.0390.01214.64
7.0.220.0230.01014.38
7.0.210.0220.00814.40
7.0.200.0250.00714.56
7.0.190.0210.01114.51
7.0.180.0220.01014.61
7.0.170.0390.00214.49
7.0.160.0420.00514.65
7.0.150.0430.01014.71
7.0.140.0330.00514.64
7.0.130.0350.00614.39
7.0.120.0270.01014.69
7.0.110.0250.00614.39
7.0.100.0290.00914.60
7.0.90.0220.01014.45
7.0.80.0270.00314.79
7.0.70.0260.00814.56
7.0.60.0320.00514.46
7.0.50.0270.00614.83
7.0.40.0220.00813.60
7.0.30.0240.01113.52
7.0.20.0250.00613.64
7.0.10.0460.00813.73
7.0.00.0300.00513.62
5.6.400.0140.00013.96
5.6.390.0060.00914.25
5.6.380.0060.01014.23
5.6.370.0000.01314.46
5.6.360.0070.00714.14
5.6.350.0030.00614.24
5.6.340.0040.00814.43
5.6.330.0070.00714.08
5.6.320.0040.00714.23
5.6.310.0030.00714.38
5.6.300.0040.01214.33
5.6.290.0040.00914.48
5.6.280.0060.00914.21
5.6.270.0000.00914.33
5.6.260.0000.00914.40
5.6.250.0040.01114.27
5.6.240.0080.00614.19
5.6.230.0030.00614.21
5.6.220.0100.00414.54
5.6.210.0030.00714.34
5.6.200.0060.00914.52
5.6.190.0060.00914.23
5.6.180.0100.00714.40
5.6.170.0030.01014.38
5.6.160.0060.01214.54
5.6.150.0080.00414.20
5.6.140.0030.01314.16
5.6.130.0040.00814.27
5.6.120.0060.00314.47
5.6.110.0080.00414.64
5.6.100.0060.00614.26
5.6.90.0040.00814.31
5.6.80.0100.00014.47
5.6.70.0100.00714.23
5.6.60.0060.00914.27
5.6.50.0000.01014.18
5.6.40.0060.00614.49
5.6.30.0070.00714.12
5.6.20.0000.01014.14
5.6.10.0030.01214.23
5.6.00.0030.00714.12

preferences:
56.99 ms | 400 KiB | 5 Q