3v4l.org

run code in 300+ PHP versions simultaneously
<?php //if -behind- have double or more (\\) match it, but if (\) its one ignore it //get -behind\\- $str = 'hey look -behind\\- you'; //ignore -behind\- $str = 'hey look -behind\- you'; preg_match_all('/\-(.*?)(?<!\\\{2})\-/', $str, $matched); var_dump($matched);

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.0130.00316.50
8.3.50.0110.00718.13
8.3.40.0070.00718.49
8.3.30.0070.01018.84
8.3.20.0040.00420.18
8.3.10.0040.00423.52
8.3.00.0080.00022.21
8.2.180.0090.00616.75
8.2.170.0140.00322.96
8.2.160.0070.00719.15
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00519.78
8.2.110.0000.01121.17
8.2.100.0070.00417.83
8.2.90.0040.00417.91
8.2.80.0030.00617.97
8.2.70.0030.00617.93
8.2.60.0030.00617.97
8.2.50.0000.00818.10
8.2.40.0030.00619.61
8.2.30.0040.00417.75
8.2.20.0040.00417.82
8.2.10.0000.00717.88
8.2.00.0070.00017.73
8.1.280.0080.01225.92
8.1.270.0030.00623.87
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0090.00322.68
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0070.00717.38
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0050.00317.62
8.1.160.0070.00018.84
8.1.150.0000.00718.71
8.1.140.0040.00419.53
8.1.130.0000.00817.70
8.1.120.0000.00717.42
8.1.110.0000.00817.52
8.1.100.0000.00717.43
8.1.90.0040.00417.39
8.1.80.0040.00417.54
8.1.70.0000.00917.44
8.1.60.0000.00817.75
8.1.50.0060.00317.52
8.1.40.0080.00017.48
8.1.30.0080.00017.78
8.1.20.0000.00817.74
8.1.10.0000.00717.75
8.1.00.0020.00517.60
8.0.300.0000.01019.79
8.0.290.0070.00016.88
8.0.280.0000.00718.08
8.0.270.0030.00317.99
8.0.260.0050.00316.81
8.0.250.0070.00017.02
8.0.240.0000.00616.89
8.0.230.0070.00016.91
8.0.220.0070.00016.91
8.0.210.0050.00216.96
8.0.200.0040.00416.97
8.0.190.0030.00616.89
8.0.180.0000.00717.07
8.0.170.0030.00516.88
8.0.160.0040.00417.00
8.0.150.0030.00416.80
8.0.140.0070.00016.82
8.0.130.0030.00313.37
8.0.120.0000.00816.96
8.0.110.0090.00016.85
8.0.100.0000.00717.00
8.0.90.0050.00216.85
8.0.80.0160.00016.96
8.0.70.0030.00516.98
8.0.60.0000.00717.00
8.0.50.0000.00817.03
8.0.30.0110.00817.01
8.0.20.0110.00817.41
8.0.10.0030.00417.05
8.0.00.0090.00916.82
7.4.330.0030.00315.08
7.4.320.0060.00016.76
7.4.300.0060.00016.71
7.4.290.0000.00716.57
7.4.280.0000.00716.68
7.4.270.0000.00716.78
7.4.260.0030.00316.76
7.4.250.0000.00816.66
7.4.240.0030.00416.73
7.4.230.0000.00716.85
7.4.220.0070.01116.59
7.4.210.0090.00616.75
7.4.200.0000.00716.72
7.4.160.0160.00316.59
7.4.150.0000.01917.40
7.4.140.0100.01117.86
7.4.130.0110.00816.61
7.4.120.0090.00716.48
7.4.110.0120.00616.57
7.4.100.0080.00916.68
7.4.90.0190.00016.70
7.4.80.0070.01419.39
7.4.70.0090.00916.53
7.4.60.0090.00916.45
7.4.50.0060.00916.75
7.4.40.0160.00016.58
7.4.30.0140.00816.47
7.4.00.0070.00414.92
7.3.330.0030.00313.26
7.3.320.0060.00012.99
7.3.310.0060.00316.30
7.3.300.0030.00316.26
7.3.290.0070.00716.31
7.3.280.0090.00916.28
7.3.270.0110.00617.40
7.3.260.0100.01216.29
7.3.250.0070.01116.53
7.3.240.0110.00816.36
7.3.230.0080.00816.39
7.3.210.0070.01016.38
7.3.200.0110.00616.32
7.3.190.0130.00316.55
7.3.180.0090.01516.32
7.3.170.0130.01016.39
7.3.160.0090.00916.74
7.2.330.0070.01016.74
7.2.320.0030.01916.65
7.2.310.0080.00816.56
7.2.300.0090.01116.52
7.2.290.0120.00416.72
7.2.60.0090.00016.92
7.1.200.0070.00715.66
7.1.70.0160.00717.21
7.1.60.0070.00717.10
7.1.00.0030.07322.43
7.0.200.0080.00414.81
7.0.100.1930.06319.98
7.0.90.0130.05719.98
7.0.80.0200.06019.96
7.0.70.0200.07720.12
7.0.60.0030.07319.93
7.0.50.0030.06720.40
7.0.40.0100.05720.39
7.0.30.0070.06720.32
7.0.20.0100.06020.45
7.0.10.0070.06320.26
7.0.00.0230.08320.33
5.6.250.0130.05720.65
5.6.240.0070.06020.60
5.6.230.0130.05720.64
5.6.220.0170.05020.60
5.6.210.0230.06720.60
5.6.200.0130.06021.13
5.6.190.0200.05021.09
5.6.180.0130.05721.02
5.6.170.0070.06321.09
5.6.160.0200.04721.07
5.6.150.0100.06021.02
5.6.140.0270.04021.07
5.6.130.0130.06321.11
5.6.120.0230.05021.05
5.6.110.0170.05321.06
5.6.100.0070.05721.12
5.6.90.0170.05021.11
5.6.80.0000.06320.46
5.6.70.0100.05320.45
5.6.60.0170.04720.56
5.6.50.0030.06320.49
5.6.40.0070.05720.43
5.6.30.0170.04320.45
5.6.20.0100.05320.52
5.6.10.0100.05020.43
5.6.00.0070.05720.48

preferences:
106.47 ms | 401 KiB | 5 Q