3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://regex101.com/r/dxft9p/1 $string = 'Directed by David Fincher. Written by Jim Uhls. Based on the novel by Chuck Palahniuk.'; $regex = '#Directed by (?<director>\w+\s?\w+). Written by (?<author>\w+\s?\w+)#'; preg_match($regex, $string, $matches); echo 'Director - '.$matches['director']."\n"; echo 'Author - '.$matches['author'];

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.130.0060.01518.56
8.4.120.0130.00624.19
8.4.110.0100.01118.86
8.4.100.0130.00718.70
8.4.90.0120.00920.50
8.4.80.0050.00418.81
8.4.70.0110.00718.04
8.4.60.0100.00619.16
8.4.50.0040.00520.52
8.4.40.0060.01319.70
8.4.30.0040.00419.59
8.4.20.0060.00318.08
8.4.10.0140.00717.77
8.3.260.0120.00816.57
8.3.250.0130.00518.67
8.3.240.0050.00317.20
8.3.230.0120.00716.63
8.3.220.0110.00719.04
8.3.210.0140.00516.63
8.3.200.0040.00516.76
8.3.190.0130.00517.22
8.3.180.0100.00417.40
8.3.170.0150.00418.94
8.3.160.0060.00316.91
8.3.150.0040.00418.86
8.3.140.0060.00316.64
8.3.130.0030.00618.77
8.3.120.0040.00420.79
8.3.110.0030.00520.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0090.00017.97
8.3.70.0040.01116.74
8.3.60.0150.00316.88
8.3.50.0100.01521.27
8.3.40.0040.01118.82
8.3.30.0000.01418.79
8.3.20.0000.00720.26
8.3.10.0090.00021.86
8.3.00.0040.00421.95
8.2.290.0110.00720.68
8.2.280.0120.00818.44
8.2.270.0150.00317.38
8.2.260.0030.00618.80
8.2.250.0030.00518.50
8.2.240.0000.01417.09
8.2.230.0040.00422.58
8.2.220.0130.00637.54
8.2.210.0100.01026.77
8.2.200.0000.01216.88
8.2.190.0070.00716.75
8.2.180.0090.00618.55
8.2.170.0100.00322.96
8.2.160.0000.01421.33
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00420.35
8.2.120.0000.00826.35
8.2.110.0040.00421.24
8.2.100.0080.00418.03
8.2.90.0040.00422.40
8.2.80.0000.01017.97
8.2.70.0080.00017.93
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0060.00322.46
8.2.30.0050.00319.35
8.2.20.0040.00418.16
8.2.10.0040.00418.24
8.2.00.0000.00718.24
8.1.330.0110.00921.77
8.1.320.0080.00216.50
8.1.310.0030.00616.96
8.1.300.0070.01118.32
8.1.290.0060.00330.84
8.1.280.0040.01225.92
8.1.270.0040.00420.84
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00020.71
8.1.230.0070.00422.75
8.1.220.0040.00417.74
8.1.210.0000.00818.87
8.1.200.0050.00317.48
8.1.190.0060.00317.48
8.1.180.0000.00818.10
8.1.170.0090.00018.71
8.1.160.0080.00018.86
8.1.150.0030.00320.17
8.1.140.0000.01119.60
8.1.130.0090.00017.59
8.1.120.0040.00417.66
8.1.110.0050.00317.52
8.1.100.0000.00717.59
8.1.90.0080.00017.64
8.1.80.0040.00417.52
8.1.70.0070.00017.63
8.1.60.0040.00417.63
8.1.50.0030.00617.68
8.1.40.0030.00617.64
8.1.30.0040.00417.77
8.1.20.0040.00417.74
8.1.10.0040.00417.62
8.1.00.0020.00517.55
8.0.300.0040.00419.86
8.0.290.0030.00616.75
8.0.280.0000.00718.48
8.0.270.0030.00617.33
8.0.260.0000.00716.96
8.0.250.0030.00317.11
8.0.240.0040.00417.16
8.0.230.0000.00717.12
8.0.220.0050.00317.03
8.0.210.0070.00017.05
8.0.200.0000.00716.98
8.0.190.0040.00417.04
8.0.180.0000.00717.08
8.0.170.0040.00417.07
8.0.160.0040.00417.08
8.0.150.0000.00816.98
8.0.140.0040.00416.91
8.0.130.0030.00313.40
8.0.120.0040.00416.90
8.0.110.0040.00416.99
8.0.100.0000.00716.96
8.0.90.0050.00317.11
8.0.80.0030.01917.09
8.0.70.0000.00717.07
8.0.60.0040.00416.88
8.0.50.0030.00416.85
8.0.30.0000.01816.99
8.0.20.0090.00917.46
8.0.10.0030.00516.93
8.0.00.0030.01416.95
7.4.330.0060.00015.55
7.4.320.0030.00316.76
7.4.300.0060.00016.67
7.4.290.0000.00816.78
7.4.280.0080.00016.79
7.4.270.0000.00716.66
7.4.260.0040.00416.75
7.4.250.0000.00716.67
7.4.240.0040.00416.54
7.4.230.0000.00716.67
7.4.220.0070.01016.71
7.4.210.0070.00716.63
7.4.200.0050.00316.88
7.4.160.0130.00616.80
7.4.150.0140.00317.40
7.4.140.0050.01217.86
7.4.130.0080.00816.78
7.4.120.0090.01216.55
7.4.110.0120.00416.80
7.4.100.0060.01016.62
7.4.90.0060.01216.67
7.4.80.0120.00819.39
7.4.70.0060.01416.87
7.4.60.0060.01016.44
7.4.50.0030.00816.50
7.4.40.0060.00916.49
7.4.30.0030.01316.69
7.4.20.0150.00616.59
7.4.10.0070.01016.74
7.4.00.0030.01215.90
7.3.330.0000.00613.25
7.3.320.0000.00513.24
7.3.310.0030.00316.41
7.3.300.0000.00716.28
7.3.290.0120.00416.35
7.3.280.0090.00916.38
7.3.270.0070.01017.40
7.3.260.0110.00716.55
7.3.250.0080.01116.64
7.3.240.0140.00316.66
7.3.230.0140.00716.52
7.3.210.0130.00616.48
7.3.200.0090.00816.50
7.3.190.0100.00516.60
7.3.180.0070.01016.47
7.3.170.0160.00016.55
7.3.160.0080.00816.40
7.3.140.0100.01016.44
7.3.130.0040.01116.55
7.3.120.0130.00316.36
7.3.110.0100.01016.56
7.3.100.0110.00816.68
7.3.90.0060.01216.54
7.3.80.0140.00316.63
7.3.70.0030.01216.51
7.3.60.0060.00916.50
7.3.50.0070.00716.40
7.3.40.0040.01116.47
7.3.30.0120.00316.49
7.3.20.0270.00315.74
7.3.10.0210.01015.82
7.3.00.0320.00715.68
7.2.330.0130.00616.85
7.2.320.0030.01416.88
7.2.310.0120.00616.76
7.2.300.0120.00616.90
7.2.290.0060.01016.83
7.2.270.0120.00916.77
7.2.260.0160.00016.55
7.2.250.0090.01216.85
7.2.240.0110.01116.77
7.2.230.0130.00916.66
7.2.220.0100.00616.80
7.2.210.0090.00616.67
7.2.200.0030.01216.74
7.2.190.0060.00916.77
7.2.180.0110.00416.72
7.2.170.0110.00316.68
7.2.160.0060.00916.88
7.2.150.0310.00616.17
7.2.140.0180.00815.97
7.2.130.0280.00716.09
7.2.120.0200.01016.08
7.2.110.0200.00815.82
7.2.100.0230.00315.90
7.2.90.0150.01315.98
7.2.80.0290.00816.02
7.2.70.0480.01016.00
7.2.60.0200.00416.40
7.2.50.0260.00816.16
7.2.40.0260.00915.99
7.2.30.0290.01016.12
7.2.20.0250.00716.06
7.2.10.0260.00615.84
7.2.00.0240.01015.94
7.1.330.0140.01115.57
7.1.320.0060.01315.58
7.1.310.0080.01115.63
7.1.300.0050.01015.50
7.1.290.0100.00615.40
7.1.280.0030.01315.59
7.1.270.0080.00815.57
7.1.260.0040.01315.73
7.1.250.0220.00614.80
7.1.240.0250.00514.93
7.1.230.0430.00314.79
7.1.220.0290.01214.88
7.1.210.0290.00814.72
7.1.200.0300.00415.06
7.1.190.0280.00514.92
7.1.180.0240.00814.91
7.1.170.0240.01314.73
7.1.160.0300.01014.83
7.1.150.0190.01514.66
7.1.140.0340.01014.86
7.1.130.0230.00814.86
7.1.120.0240.00914.72
7.1.110.0290.00714.95
7.1.100.0280.00614.83
7.1.90.0250.00614.91
7.1.80.0280.01014.96
7.1.70.0240.00415.73
7.1.60.0150.00915.65
7.1.50.0240.01014.94
7.1.40.0230.01421.37
7.1.30.0260.01121.34
7.1.20.0180.01021.46
7.1.10.0170.01115.37
7.1.00.0210.00615.50
7.0.330.0250.00814.37
7.0.320.0380.00314.62
7.0.310.0260.00614.22
7.0.300.0350.00214.33
7.0.290.0210.01214.37
7.0.280.0300.00614.24
7.0.270.0310.01214.40
7.0.260.0270.01214.35
7.0.250.0300.00914.57
7.0.240.0250.01014.55
7.0.230.0200.00914.37
7.0.220.0290.00614.61
7.0.210.0240.00914.47
7.0.200.0300.00915.14
7.0.190.0250.01414.50
7.0.180.0250.00715.04
7.0.170.0170.01115.13
7.0.160.0180.00715.00
7.0.150.0200.00515.17
7.0.140.0240.00515.06
7.0.130.0200.00715.21
7.0.120.0220.00615.17
7.0.110.0210.00714.98
7.0.100.0160.00815.14
7.0.90.0130.01014.94
7.0.80.0140.01215.18
7.0.70.0150.01214.95
7.0.60.0190.00815.02
7.0.50.0210.00714.98
7.0.40.0170.00615.15
7.0.30.0190.00915.14
7.0.20.0190.00815.05
7.0.10.0190.00715.19
7.0.00.0220.01015.10
5.6.400.0000.02015.98
5.6.390.0130.01315.98
5.6.380.0090.00915.08
5.6.370.0120.00615.86
5.6.360.0170.00916.00
5.6.350.0090.00915.88
5.6.340.0060.01215.88
5.6.330.0130.01015.77
5.6.320.0040.01615.68
5.6.310.0120.00615.76
5.6.300.0070.01015.97
5.6.290.0000.01716.03
5.6.280.0030.01415.97
5.6.270.0090.01215.98
5.6.260.0060.00915.98
5.6.250.0150.00316.17
5.6.240.0050.01615.88
5.6.230.0100.01715.81
5.6.220.0130.01015.84
5.6.210.0130.00615.74
5.6.200.0140.01215.64
5.6.190.0050.01415.94
5.6.180.0040.01515.64
5.6.170.0030.01715.54
5.6.160.0130.01315.74
5.6.150.0080.01115.67
5.6.140.0140.00915.75
5.6.130.0150.00515.70
5.6.120.0110.01115.69
5.6.110.0110.00815.63
5.6.100.0000.02216.07
5.6.90.0200.00015.72
5.6.80.0070.01515.69
5.6.70.0070.01415.75
5.6.60.0030.01615.64
5.6.50.0090.01315.56
5.6.40.0080.01915.71
5.6.30.0100.01515.70
5.6.20.0110.01115.79
5.6.10.0100.01015.82
5.6.00.0090.00915.69

preferences:
119.07 ms | 403 KiB | 5 Q