3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "You can use any regular expression pression inside the lookahead "; if (preg_match('~^(.*?\w\W+)pression(\W+\w.*)$~is', $text, $m)) { echo $m[1] . " << | >> " . $m[2]; }

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.0060.01218.56
8.3.50.0090.00518.40
8.3.40.0120.00318.95
8.3.30.0080.00818.93
8.3.20.0060.00324.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.180.0100.00725.92
8.2.170.0100.00319.26
8.2.160.0080.00822.96
8.2.150.0110.00725.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0130.00320.39
8.2.100.0000.01217.84
8.2.90.0090.00017.88
8.2.80.0090.00018.87
8.2.70.0080.00418.16
8.2.60.0000.00918.22
8.2.50.0000.00818.10
8.2.40.0050.00319.47
8.2.30.0050.00219.36
8.2.20.0040.00418.15
8.2.10.0040.00419.15
8.2.00.0040.00419.16
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00321.98
8.1.230.0090.00317.77
8.1.220.0030.00617.78
8.1.210.0030.00518.77
8.1.200.0060.00617.36
8.1.190.0000.00917.38
8.1.180.0040.00418.10
8.1.170.0030.00618.63
8.1.160.0040.00420.64
8.1.150.0040.00418.90
8.1.140.0040.00418.95
8.1.130.0040.00420.08
8.1.120.0030.00517.65
8.1.110.0000.00817.60
8.1.100.0060.00317.59
8.1.90.0030.00717.48
8.1.80.0050.00217.52
8.1.70.0000.00717.64
8.1.60.0050.00217.71
8.1.50.0040.00417.57
8.1.40.0040.00417.54
8.1.30.0000.00817.75
8.1.20.0000.00817.85
8.1.10.0040.00417.76
8.1.00.0030.00717.67
8.0.300.0040.00420.12
8.0.290.0080.00016.88
8.0.280.0030.00318.42
8.0.270.0000.00918.75
8.0.260.0000.00618.49
8.0.250.0000.00717.02
8.0.240.0000.00716.97
8.0.230.0030.00317.06
8.0.220.0040.00417.02
8.0.210.0000.00716.99
8.0.200.0000.00717.01
8.0.190.0020.00517.08
8.0.180.0000.01017.06
8.0.170.0000.00816.88
8.0.160.0030.00617.02
8.0.150.0000.00716.95
8.0.140.0000.00717.00
8.0.130.0030.00313.54
8.0.120.0080.00016.87
8.0.110.0040.00417.10
8.0.100.0040.00417.09
8.0.90.0080.00016.89
8.0.80.0080.00817.04
8.0.70.0030.01016.91
8.0.60.0130.00016.94
8.0.50.0100.00316.96
8.0.30.0040.01116.98
8.0.20.0030.01017.07
8.0.10.0090.00617.11
8.0.00.0080.00617.05
7.4.330.0020.00215.55
7.4.320.0030.00316.82
7.4.300.0040.00416.80
7.4.290.0070.00016.53
7.4.280.0040.00416.81
7.4.270.0000.00716.81
7.4.260.0030.00313.51
7.4.250.0080.00016.77
7.4.240.0040.00416.84
7.4.230.0040.00416.63
7.4.220.0030.00316.73
7.4.210.0060.00816.67
7.4.200.0030.01016.69
7.4.190.0100.00316.82
7.4.180.0060.00616.82
7.4.160.0100.00316.76
7.4.150.0060.01216.74
7.4.140.0070.00716.55
7.4.130.0060.00616.61
7.4.120.0030.00916.59
7.4.110.0040.00816.69
7.4.100.0000.01316.84
7.4.90.0070.00716.77
7.4.80.0100.00616.59
7.4.70.0030.01316.62
7.4.60.0030.01016.73
7.4.50.0070.00716.47
7.4.40.0070.00716.59
7.4.30.0100.00316.70
7.4.20.0070.00716.70
7.4.10.0080.00616.56
7.4.00.0060.00816.60
7.3.330.0000.00816.50
7.3.320.0000.00713.33
7.3.310.0000.00816.36
7.3.300.0040.00416.48
7.3.290.0100.00816.33
7.3.280.0030.01116.37
7.3.270.0040.01016.33
7.3.260.0100.00616.38
7.3.250.0030.01316.33
7.3.240.0100.00716.52
7.3.230.0120.00616.46
7.3.220.0100.01016.36
7.3.210.0050.00916.34
7.3.200.0030.01016.37
7.3.190.0070.00716.43
7.3.180.0090.00616.30
7.3.170.0070.00716.33
7.3.160.0000.01316.40
7.3.150.0040.01116.26
7.3.140.0100.00316.41
7.3.130.0000.01416.40
7.3.120.0030.00916.34
7.3.110.0030.01016.34
7.3.100.0110.00316.34
7.3.90.0100.00316.63
7.3.80.0040.00816.34
7.3.70.0030.01016.42
7.3.60.0030.01016.63
7.3.50.0060.00616.56
7.3.40.0090.00316.53
7.3.30.0030.01016.56
7.3.20.0070.00716.52
7.3.10.0100.00316.43
7.3.00.0090.00616.52

preferences:
57.54 ms | 401 KiB | 5 Q