3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line="This is the first test.{@font-face:Garamond}"; preg_match("(?<={1})(?<![\]\\])\{([\w\s\\@:=\'"-\.;^}]*)(?<={1})(?<!\\)\}", $line, $array); var_dump($array);

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)
5.6.80.0000.04020.37
5.5.240.0000.04020.34
5.4.400.0200.05318.84
5.4.390.0200.06018.63
5.4.380.0370.05318.50
5.4.370.0270.05318.59
5.4.360.0300.05318.79
5.4.350.0200.06018.56
5.4.340.0200.06018.56
5.4.320.0170.06018.69
5.4.310.0200.05318.71
5.4.300.0170.06018.69
5.4.290.0230.05718.61
5.4.280.0330.04318.62
5.4.270.0330.04718.46
5.4.260.0300.05018.58
5.4.250.0170.06018.78
5.4.240.0200.05718.55
5.4.230.0270.04318.51
5.4.220.0200.06018.49
5.4.210.0230.05318.49
5.4.200.0230.05016.68
5.4.190.0230.05018.60
5.4.180.0230.05318.44
5.4.170.0230.05718.57
5.4.160.0270.04718.73
5.4.150.0270.06318.76
5.4.140.0230.05016.35
5.4.130.0270.05016.41
5.4.120.0300.04016.32
5.4.110.0270.04316.20
5.4.100.0170.06016.22
5.4.90.0170.05716.45
5.4.80.0170.05016.27
5.4.70.0230.05716.16
5.4.60.0230.06316.20
5.4.50.0170.07016.26
5.4.40.0230.07016.16
5.4.30.0130.05316.19
5.4.20.0200.05016.19
5.4.10.0170.05016.38
5.4.00.0170.05015.66
5.3.290.0330.04314.60
5.3.280.0130.06014.59
5.3.270.0330.06314.59
5.3.260.0230.07014.70
5.3.250.0130.07314.64
5.3.240.0170.06014.52
5.3.230.0270.05014.57
5.3.220.0270.04714.66
5.3.210.0170.05314.57
5.3.200.0230.05014.60
5.3.190.0230.05714.56
5.3.180.0270.04714.64
5.3.170.0300.04314.61
5.3.160.0300.04714.57
5.3.150.0230.06014.64
5.3.140.0230.05714.65
5.3.130.0270.05314.55
5.3.120.0330.05714.50
5.3.110.0170.05714.53
5.3.100.0230.06313.95
5.3.90.0270.05713.93
5.3.80.0130.06314.13
5.3.70.0370.04314.00
5.3.60.0130.05713.89
5.3.50.0200.05013.86
5.3.40.0170.05014.04
5.3.30.0300.04013.91
5.3.20.0230.05713.67
5.3.10.0470.04313.63
5.3.00.0200.05313.59
5.2.170.0200.03711.12
5.2.160.0230.03711.15
5.2.150.0270.04711.13
5.2.140.0170.04311.12
5.2.130.0170.04011.06
5.2.120.0230.03711.04
5.2.110.0130.04311.06
5.2.100.0130.04311.06
5.2.90.0170.04711.09
5.2.80.0200.05011.05
5.2.70.0270.04011.23
5.2.60.0270.04711.02
5.2.50.0230.05011.05
5.2.40.0130.05310.98
5.2.30.0100.05710.96
5.2.20.0230.03310.94
5.2.10.0200.03710.87
5.2.00.0200.03310.69
5.1.60.0100.0339.96
5.1.50.0100.03710.02
5.1.40.0130.0309.99
5.1.30.0170.03310.34
5.1.20.0170.03310.39
5.1.10.0070.04310.18
5.1.00.0100.05010.14
5.0.50.0100.0278.58
5.0.40.0030.0308.43
5.0.30.0070.0438.31
5.0.20.0070.0278.40
5.0.10.0100.0378.34
5.0.00.0230.0408.17
4.4.90.0130.0275.90
4.4.80.0170.0235.89
4.4.70.0100.0275.87
4.4.60.0100.0275.89
4.4.50.0100.0275.88
4.4.40.0030.0375.94
4.4.30.0000.0275.87
4.4.20.0070.0205.95
4.4.10.0070.0205.97
4.4.00.0100.0335.86
4.3.110.0070.0235.85
4.3.100.0170.0105.74
4.3.90.0100.0175.78
4.3.80.0100.0305.80
4.3.70.0070.0275.80
4.3.60.0100.0175.87
4.3.50.0070.0235.79
4.3.40.0070.0335.78
4.3.30.0030.0234.59
4.3.20.0070.0204.53
4.3.10.0070.0204.52
4.3.00.0000.02310.77

preferences:
144.62 ms | 1398 KiB | 7 Q