3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Павел Дуров 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);

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.0150.00616.75
8.3.50.0110.00416.65
8.3.40.0060.00619.10
8.3.30.0110.00419.13
8.3.20.0040.00420.29
8.3.10.0080.00023.64
8.3.00.0040.00421.82
8.2.180.0090.00916.63
8.2.170.0090.00622.96
8.2.160.0090.00619.30
8.2.150.0040.01125.66
8.2.140.0040.00424.66
8.2.130.0070.00021.17
8.2.120.0070.00026.35
8.2.110.0070.00321.12
8.2.100.0000.01117.97
8.2.90.0040.00419.17
8.2.80.0040.00418.01
8.2.70.0040.00717.63
8.2.60.0030.00517.80
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0030.00521.18
8.2.20.0030.00618.16
8.2.10.0040.00418.21
8.2.00.0030.00518.24
8.1.280.0120.00625.92
8.1.270.0060.00322.09
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0050.00519.07
8.1.220.0040.00417.93
8.1.210.0000.00818.77
8.1.200.0070.00217.59
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0080.00018.76
8.1.160.0040.00419.22
8.1.150.0040.00420.82
8.1.140.0050.00319.69
8.1.130.0070.00019.04
8.1.120.0040.00417.64
8.1.110.0040.00417.57
8.1.100.0040.00417.53
8.1.90.0040.00417.64
8.1.80.0000.00717.52
8.1.70.0000.00717.58
8.1.60.0040.00417.62
8.1.50.0000.00917.67
8.1.40.0030.00517.56
8.1.30.0080.00017.89
8.1.20.0000.00817.82
8.1.10.0060.00317.70
8.1.00.0080.00017.61
8.0.300.0030.00618.77
8.0.290.0040.00417.00
8.0.280.0000.00718.48
8.0.270.0030.00317.27
8.0.260.0040.00417.20
8.0.250.0000.00717.34
8.0.240.0050.00317.23
8.0.230.0040.00417.31
8.0.220.0000.00717.40
8.0.210.0070.00017.32
8.0.200.0000.00717.38
8.0.190.0080.00017.29
8.0.180.0030.00917.29
8.0.170.0050.00217.23
8.0.160.0030.00517.29
8.0.150.0070.00017.25
8.0.140.0040.00417.09
8.0.130.0040.00413.66
8.0.120.0000.00817.29
8.0.110.0000.00817.13
8.0.100.0040.00417.21
8.0.90.0050.00317.08
8.0.80.0150.00417.36
8.0.70.0000.00717.32
8.0.60.0040.00417.18
8.0.50.0000.00717.13
8.0.30.0110.00817.37
8.0.20.0060.01317.42
8.0.10.0040.00417.29
8.0.00.0110.01117.03
7.4.330.0030.00315.55
7.4.320.0060.00016.94
7.4.300.0000.00616.70
7.4.290.0060.00316.80
7.4.280.0070.00016.73
7.4.270.0030.00316.74
7.4.260.0030.00316.88
7.4.250.0070.00016.89
7.4.240.0040.00416.74
7.4.230.0000.00716.92
7.4.220.0070.01116.96
7.4.210.0060.00916.89
7.4.200.0040.00416.93
7.4.160.0030.01316.79
7.4.150.0100.00717.40
7.4.140.0150.00717.86
7.4.130.0110.01016.79
7.4.120.0160.00416.75
7.4.110.0140.00316.91
7.4.100.0110.00716.66
7.4.90.0150.00316.81
7.4.80.0100.00719.39
7.4.70.0070.01116.63
7.4.60.0100.00716.90
7.4.50.0090.00316.65
7.4.40.0140.00316.73
7.4.30.0090.00916.77
7.4.00.0090.00415.14
7.3.330.0000.00613.47
7.3.320.0000.00513.52
7.3.310.0050.00216.75
7.3.300.0000.00716.59
7.3.290.0000.00716.57
7.3.280.0090.00916.62
7.3.270.0150.00317.40
7.3.260.0120.00816.54
7.3.250.0110.00616.61
7.3.240.0090.01116.62
7.3.230.0090.00916.77
7.3.210.0070.01016.76
7.3.200.0060.01316.77
7.3.190.0030.01316.50
7.3.180.0090.00616.45
7.3.170.0070.01016.71
7.3.160.0090.00616.44
7.3.120.0070.01015.29
7.3.110.0140.00314.72
7.3.100.0170.00015.00
7.3.90.0040.01414.86
7.3.80.0090.00614.78
7.3.70.0090.00614.96
7.3.60.0040.01115.13
7.3.50.0030.01015.13
7.3.40.0110.00015.02
7.3.30.0000.01315.11
7.3.20.0070.01016.84
7.3.10.0080.00816.57
7.3.00.0020.00916.80
7.2.330.0150.00316.77
7.2.320.0120.00616.81
7.2.310.0090.00916.65
7.2.300.0090.00916.88
7.2.290.0100.00916.71
7.2.250.0070.01015.20
7.2.240.0070.01115.17
7.2.230.0060.00615.30
7.2.220.0120.00615.22
7.2.210.0000.01215.35
7.2.200.0030.00915.37
7.2.190.0090.00315.13
7.2.180.0040.01014.96
7.2.170.0100.00315.29
7.2.130.0030.01316.95
7.2.120.0040.00816.85
7.2.110.0060.00917.20
7.2.100.0070.01117.23
7.2.90.0130.00216.16
7.2.80.0110.00416.01
7.2.70.0490.00516.12
7.2.60.0510.00816.40
7.2.50.0290.00716.04
7.2.40.0320.01016.13
7.2.30.0130.00215.98
7.2.20.0250.01015.94
7.2.10.0120.00716.13
7.2.00.0210.00916.27
7.1.330.0030.01015.80
7.1.320.0070.00716.04
7.1.310.0070.00716.08
7.1.300.0030.01016.04
7.1.290.0030.00916.08
7.1.280.0060.00615.95
7.1.270.0030.00616.06
7.1.260.0040.01116.06
7.1.250.0070.00716.09
7.1.210.0030.01014.16
7.1.200.0480.00414.05
7.1.190.0440.00614.28
7.1.180.0770.00713.97
7.1.170.0710.00414.28
7.1.160.0110.00714.39
7.1.150.0320.00714.21
7.1.140.0100.01014.05
7.1.130.0710.00614.13
7.1.120.0310.00614.11
7.1.110.0200.00614.13
7.1.100.0430.00413.88
7.1.90.0120.00914.26
7.1.80.0080.00614.14
7.1.70.0100.00614.16
7.1.60.0610.01032.32
7.1.50.0780.01431.96
7.1.40.0690.00731.58
7.1.30.0580.01131.68
7.1.20.0770.00731.77
7.1.10.0130.00514.11
7.1.00.0500.01513.96
7.0.310.0350.00413.67
7.0.300.0580.00613.68
7.0.290.0110.00813.50
7.0.280.0110.00813.41
7.0.270.0140.00313.58
7.0.260.0130.00313.83
7.0.250.0190.00013.89
7.0.240.0380.01013.64
7.0.230.0460.01013.78
7.0.220.0110.01113.58
7.0.210.0530.00913.55
7.0.200.0480.00813.42
7.0.190.0520.00313.68
7.0.180.0830.00013.57
7.0.170.0480.00313.80
7.0.160.0770.00013.43
7.0.150.0700.00313.50
7.0.140.0060.00913.35
7.0.130.0570.00613.92
7.0.120.0580.00313.58
7.0.110.0130.00713.70
7.0.100.0100.00313.54
7.0.90.0540.00313.64
7.0.80.0350.01013.89
7.0.70.0160.00613.87
7.0.60.0660.00313.87
7.0.50.0940.00713.86
7.0.40.0560.01513.66
7.0.30.0560.00713.91
7.0.20.0600.00713.89
7.0.10.0560.00913.91
7.0.00.0460.01313.54

preferences:
41.15 ms | 400 KiB | 5 Q