3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\@var\s*([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/i'; $str = "/** * bla bla bla * * @ORM\Id @bla @var 123 456 * @ORM\Column(type=\"integer\") */" ; preg_match($re, $str, $matches); // Print the entire match result var_dump($matches);

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.0040.01518.55
8.3.50.0140.00316.44
8.3.40.0090.00618.79
8.3.30.0070.00718.84
8.3.20.0080.00020.31
8.3.10.0070.00321.73
8.3.00.0000.00820.84
8.2.180.0100.00716.75
8.2.170.0110.00422.96
8.2.160.0100.00322.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.33
8.2.120.0020.00526.35
8.2.110.0100.00020.44
8.2.100.0040.00717.84
8.2.90.0060.00319.28
8.2.80.0060.00318.04
8.2.70.0030.00617.75
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0040.00422.27
8.2.30.0030.00520.95
8.2.20.0070.00017.95
8.2.10.0070.00017.93
8.2.00.0000.00818.02
8.1.280.0040.01125.92
8.1.270.0030.00624.01
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.04
8.1.230.0000.01418.88
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00617.35
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0040.00418.71
8.1.160.0000.00818.95
8.1.150.0000.00818.77
8.1.140.0000.00819.50
8.1.130.0030.00318.76
8.1.120.0050.00217.48
8.1.110.0000.00717.46
8.1.100.0040.00417.42
8.1.90.0080.00317.51
8.1.80.0000.00717.60
8.1.70.0040.00417.48
8.1.60.0040.00417.72
8.1.50.0000.00817.50
8.1.40.0030.00617.54
8.1.30.0060.00317.72
8.1.20.0000.00917.75
8.1.10.0000.00717.73
8.1.00.0000.00817.56
8.0.300.0050.00220.05
8.0.290.0060.00316.75
8.0.280.0070.00018.39
8.0.270.0040.00417.26
8.0.260.0030.00316.82
8.0.250.0030.00316.91
8.0.240.0030.00317.02
8.0.230.0040.00417.07
8.0.220.0000.00716.85
8.0.210.0030.00317.04
8.0.200.0030.00317.03
8.0.190.0000.00916.98
8.0.180.0020.00517.05
8.0.170.0000.00816.98
8.0.160.0040.00417.07
8.0.150.0000.00716.93
8.0.140.0080.00016.90
8.0.130.0000.00613.33
8.0.120.0040.00416.91
8.0.110.0000.00717.03
8.0.100.0040.00416.85
8.0.90.0050.00216.94
8.0.80.0080.00816.96
8.0.70.0040.00416.77
8.0.60.0040.00417.04
8.0.50.0070.00016.91
8.0.30.0180.00817.25
8.0.20.0100.01217.42
8.0.10.0040.00416.91
8.0.00.0120.00416.62
7.4.330.0040.00015.55
7.4.320.0060.00016.63
7.4.300.0000.00616.66
7.4.290.0030.00616.69
7.4.280.0000.00816.56
7.4.270.0070.00016.66
7.4.260.0000.00813.34
7.4.250.0030.00516.61
7.4.240.0070.00016.77
7.4.230.0050.00216.64
7.4.220.0070.02016.77
7.4.210.0020.01216.69
7.4.200.0000.00716.49
7.4.160.0080.00816.72
7.4.150.0100.00717.40
7.4.140.0060.01317.86
7.4.130.0120.00816.52
7.4.120.0110.01016.65
7.4.110.0120.00616.72
7.4.100.0090.00916.53
7.4.90.0070.01016.72
7.4.80.0140.00319.39
7.4.70.0080.00816.53
7.4.60.0060.01216.70
7.4.50.0070.00716.39
7.4.40.0130.00616.30
7.4.30.0070.01016.84
7.4.00.0060.00615.07
7.3.330.0000.00513.21
7.3.320.0030.00313.01
7.3.310.0040.00416.29
7.3.300.0030.00316.27
7.3.290.0030.00316.29
7.3.280.0070.00916.30
7.3.270.0090.00917.40
7.3.260.0190.00916.55
7.3.250.0120.00616.50
7.3.240.0110.00716.34
7.3.230.0110.00616.61
7.3.210.0130.00616.45
7.3.200.0090.00616.22
7.3.190.0120.00616.29
7.3.180.0100.00716.16
7.3.170.0100.01016.71
7.3.160.0120.00416.75
7.3.10.0030.00616.37
7.3.00.0090.00316.49
7.2.330.0140.00316.71
7.2.320.0070.01416.69
7.2.310.0140.00316.73
7.2.300.0170.00016.49
7.2.290.0040.01516.62
7.2.130.0030.00916.80
7.2.120.0080.00616.80
7.2.110.0120.00016.68
7.2.100.0080.00416.66
7.2.90.0830.00315.63
7.2.80.0080.00815.79
7.2.70.0290.00415.89
7.2.60.0250.00816.01
7.2.50.0090.00915.99
7.2.40.0100.00515.84
7.2.30.0070.01216.05
7.2.20.0290.00415.80
7.2.10.0840.00515.84
7.2.00.0070.01115.97
7.1.250.0100.00315.55
7.1.210.0170.00014.01
7.1.200.0450.00313.96
7.1.190.0440.00014.02
7.1.180.1160.00713.79
7.1.170.0090.01214.09
7.1.160.0060.01513.89
7.1.150.0180.00314.07
7.1.140.0160.00313.90
7.1.130.0130.00413.84
7.1.120.0090.00914.04
7.1.110.0040.01314.00
7.1.100.1360.01014.08
7.1.90.0140.00013.95
7.1.80.0530.00613.71
7.1.70.0470.01114.09
7.1.60.0900.01931.83
7.1.50.0350.00331.81
7.1.40.0270.00731.90
7.1.30.1230.01932.09
7.1.20.1170.01032.11
7.1.10.1110.00714.09
7.1.00.0040.00913.68
7.0.310.1580.00713.88
7.0.300.0140.00013.43
7.0.290.0240.00913.40
7.0.280.3080.00713.73
7.0.270.0100.00713.63
7.0.260.0510.01413.58
7.0.250.0390.00413.74
7.0.240.1540.00313.56
7.0.230.0360.00613.52
7.0.220.0150.00313.55
7.0.210.0070.00713.60
7.0.200.1130.00913.54
7.0.190.0870.00313.53
7.0.180.0180.00613.58
7.0.170.0770.01013.66
7.0.160.0300.01113.66
7.0.150.1100.00713.82
7.0.140.0190.00813.63
7.0.130.0640.00313.69
7.0.120.0260.00313.71
7.0.110.0040.01613.26
7.0.100.0990.00313.57
7.0.90.0160.00413.23
7.0.80.0250.01413.53
7.0.70.0390.00713.68
7.0.60.0000.01613.50
7.0.50.1490.00613.74
7.0.40.0130.00313.73
7.0.30.1640.00313.70
7.0.20.1380.01313.64
7.0.10.1770.00713.73
7.0.00.1620.00613.70

preferences:
47.08 ms | 401 KiB | 5 Q