3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<CONTENT bab @tag CONTENT; $matches = array(); var_dump(preg_match('/^a/', $content, $matches, 0, 1) === 1); var_dump(preg_match('/^(\A|\n)\w*@/', $content, $matches, 0, 1) === 1);

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.0090.00618.56
8.3.50.0150.00522.05
8.3.40.0090.00618.95
8.3.30.0080.00618.91
8.3.20.0000.00820.34
8.3.10.0050.00320.73
8.3.00.0040.01119.39
8.2.180.0100.00716.63
8.2.170.0120.00322.96
8.2.160.0070.00720.43
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00022.06
8.2.110.0040.00420.37
8.2.100.0040.00819.58
8.2.90.0080.00018.22
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0070.00317.68
8.2.50.0070.00418.07
8.2.40.0060.00617.81
8.2.30.0040.00419.14
8.2.20.0040.00417.79
8.2.10.0000.00718.06
8.2.00.0000.00717.67
8.1.280.0160.01025.92
8.1.270.0080.00023.70
8.1.260.0000.00926.35
8.1.250.0030.00528.09
8.1.240.0040.00422.14
8.1.230.0090.00320.63
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0090.00318.61
8.1.160.0050.00222.06
8.1.150.0020.00518.83
8.1.140.0000.00717.54
8.1.130.0070.00017.82
8.1.120.0040.00417.58
8.1.110.0050.00317.43
8.1.100.0030.00517.53
8.1.90.0000.00717.50
8.1.80.0080.00017.54
8.1.70.0000.00717.53
8.1.60.0000.00817.56
8.1.50.0090.00017.65
8.1.40.0050.00317.58
8.1.30.0040.00417.70
8.1.20.0050.00317.66
8.1.10.0040.00417.71
8.1.00.0040.00417.47
8.0.300.0050.00320.02
8.0.290.0050.00216.88
8.0.280.0030.00318.38
8.0.270.0070.00017.26
8.0.260.0000.00617.07
8.0.250.0000.00717.00
8.0.240.0030.00317.13
8.0.230.0030.00317.10
8.0.220.0030.00317.09
8.0.210.0030.00317.00
8.0.200.0000.00617.10
8.0.190.0040.00417.04
8.0.180.0030.00516.93
8.0.170.0060.00317.09
8.0.160.0000.00716.96
8.0.150.0050.00316.89
8.0.140.0000.00916.88
8.0.130.0000.00613.43
8.0.120.0020.00516.96
8.0.110.0000.00717.04
8.0.100.0030.00516.84
8.0.90.0040.00417.06
8.0.80.0060.00916.91
8.0.70.0050.00216.86
8.0.60.0030.00516.89
8.0.50.0070.00016.92
8.0.30.0120.01117.23
8.0.20.0140.00817.40
8.0.10.0050.00317.15
8.0.00.0170.00016.87
7.4.330.0020.00215.06
7.4.320.0040.00416.61
7.4.300.0030.00316.61
7.4.290.0070.00016.78
7.4.280.0110.00016.64
7.4.270.0070.00016.60
7.4.260.0030.00316.61
7.4.250.0000.00716.80
7.4.240.0040.00416.72
7.4.230.0000.00716.50
7.4.220.0090.01016.74
7.4.210.0150.00616.78
7.4.200.0000.00716.45
7.4.160.0060.01016.54
7.4.150.0160.00717.40
7.4.140.0090.00917.86
7.4.130.0050.01316.59
7.4.120.0040.01216.74
7.4.110.0160.00016.79
7.4.100.0110.00716.80
7.4.90.0090.00916.58
7.4.80.0030.01316.84
7.4.70.0060.00916.50
7.4.60.0140.00316.70
7.4.50.0040.00416.66
7.4.40.0060.00916.77
7.4.30.0120.00616.63
7.4.00.0000.01315.36
7.3.330.0000.00613.38
7.3.320.0020.00213.25
7.3.310.0070.00016.50
7.3.300.0030.00316.45
7.3.290.0030.01016.40
7.3.280.0070.01116.44
7.3.270.0150.00917.40
7.3.260.0120.00516.40
7.3.250.0160.00816.57
7.3.240.0070.01016.43
7.3.230.0100.00816.41
7.3.210.0110.01116.48
7.3.200.0150.00719.39
7.3.190.0100.00716.52
7.3.180.0100.00616.48
7.3.170.0110.00516.55
7.3.160.0060.01016.48
7.3.10.0030.01016.70
7.3.00.0080.00416.64
7.2.330.0090.00916.66
7.2.320.0000.01916.62
7.2.310.0080.00916.56
7.2.300.0160.00716.61
7.2.290.0120.00916.51
7.2.130.0090.00916.89
7.2.120.0150.00016.37
7.2.110.0110.00416.84
7.2.100.0180.00016.72
7.2.90.0070.01116.52
7.2.80.0150.00616.85
7.2.70.0030.01416.64
7.2.60.0080.01016.77
7.2.50.0120.00816.94
7.2.40.0080.00916.80
7.2.30.0080.01116.80
7.2.20.0160.01016.76
7.2.10.0090.01216.80
7.2.00.0080.00818.06
7.1.250.0110.00515.71
7.1.200.0060.00615.61
7.1.100.0140.00517.97
7.1.70.0040.00417.36
7.1.60.0070.01719.32
7.1.50.0130.00916.76
7.1.00.0000.07722.33
7.0.200.0000.01016.71
7.0.140.0070.06721.93
7.0.60.0230.07019.82
7.0.50.0070.08017.91
7.0.40.0030.04320.05
7.0.30.0270.05320.19
7.0.20.0300.07320.03
7.0.10.0070.08020.02
7.0.00.0070.04320.11
5.6.280.0100.06720.91
5.6.210.0130.07720.75
5.6.200.0100.07718.15
5.6.190.0070.06720.45
5.6.180.0470.07320.43
5.6.170.0330.03720.42
5.6.160.0030.04320.50
5.6.150.0030.04718.14
5.6.140.0000.07018.20
5.6.130.0130.07318.16
5.6.120.0130.07720.78
5.6.110.0070.08320.96
5.6.100.0200.06020.99
5.6.90.0030.06321.03
5.6.80.0100.06720.40
5.5.350.0200.08020.45
5.5.340.0130.04717.95
5.5.330.0030.08720.56
5.5.320.0300.05320.21
5.5.310.0170.04320.27
5.5.300.0070.04017.89
5.5.290.0100.06717.99
5.5.280.0070.09020.87
5.5.270.0070.04020.61
5.5.260.0070.08320.79
5.5.250.0100.05320.61
5.5.240.0100.06320.27
5.4.450.0270.05719.48
5.4.440.0700.06019.42
5.4.430.0870.05719.62
5.4.420.0830.05719.32
5.4.410.0730.05719.19
5.4.400.1330.05319.31
5.4.390.0770.06019.22
5.4.380.0470.05018.77
5.4.370.0330.05718.67
5.4.360.0270.06718.56
5.4.350.0400.05718.53
5.4.340.0530.06718.72
5.4.320.0050.04412.45
5.4.310.0070.04612.45
5.4.300.0070.03412.45
5.4.290.0050.03812.45
5.4.280.0080.03612.34
5.4.270.0080.04312.34
5.4.260.0050.03812.34
5.4.250.0080.04912.34
5.4.240.0040.03712.35
5.4.230.0070.03612.34
5.4.220.0130.03412.34
5.4.210.0070.03912.34
5.4.200.0070.03712.34
5.4.190.0060.03512.33
5.4.180.0040.03612.33
5.4.170.0070.03412.34
5.4.160.0080.03912.34
5.4.150.0080.03312.34
5.4.140.0070.04212.02
5.4.130.0090.03712.01
5.4.120.0100.03111.97
5.4.110.0050.04211.96
5.4.100.0070.03711.96
5.4.90.0040.03811.96
5.4.80.0060.03611.96
5.4.70.0060.03611.96
5.4.60.0070.04111.96
5.4.50.0060.03411.96
5.4.40.0060.03411.95
5.4.30.0080.03811.95
5.4.20.0080.03811.95
5.4.10.0080.03711.95
5.4.00.0060.03511.43
5.3.290.0070.03812.80
5.3.280.0040.03912.70
5.3.270.0030.04112.72
5.3.260.0060.03812.71
5.3.250.0110.03512.72
5.3.240.0050.04312.72
5.3.230.0040.04012.71
5.3.220.0040.04112.68
5.3.210.0070.03912.68
5.3.200.0040.03812.68
5.3.190.0040.03912.68
5.3.180.0080.03512.67
5.3.170.0060.03712.67
5.3.160.0070.03712.67
5.3.150.0040.03812.67
5.3.140.0050.03612.66
5.3.130.0080.04312.66
5.3.120.0060.03812.66
5.3.110.0080.04212.66
5.3.100.0080.03512.12
5.3.90.0110.04012.09
5.3.80.0080.03312.08
5.3.70.0040.03812.07
5.3.60.0130.04212.06
5.3.50.0090.03612.00
5.3.40.0070.03512.00
5.3.30.0040.03711.95
5.3.20.0060.03511.73
5.3.10.0070.03911.70
5.3.00.0070.04611.68
5.2.170.0040.0309.19
5.2.160.0090.0309.19
5.2.150.0050.0409.19
5.2.140.0040.0389.18
5.2.130.0040.0359.14
5.2.120.0030.0369.14
5.2.110.0070.0409.16
5.2.100.0050.0379.15
5.2.90.0060.0319.15
5.2.80.0040.0409.15
5.2.70.0040.0399.15
5.2.60.0050.0429.10
5.2.50.0020.0399.07
5.2.40.0040.0299.05
5.2.30.0030.0339.02
5.2.20.0060.0309.01
5.2.10.0070.0308.92
5.2.00.0050.0398.78
5.1.60.0070.0328.06
5.1.50.0060.0228.06
5.1.40.0020.0268.04
5.1.30.0060.0238.39
5.1.20.0040.0268.41
5.1.10.0020.0278.14
5.1.00.0020.0278.14
5.0.50.0020.0216.62
5.0.40.0040.0286.47
5.0.30.0040.0306.28
5.0.20.0030.0196.26
5.0.10.0050.0286.24
5.0.00.0030.0306.23
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0020.0184.75
4.4.60.0040.0244.75
4.4.50.0020.0214.77
4.4.40.0020.0274.71
4.4.30.0010.0184.76
4.4.20.0030.0184.85
4.4.10.0020.0174.85
4.4.00.0040.0284.76
4.3.110.0040.0224.67
4.3.100.0030.0244.66
4.3.90.0030.0214.64
4.3.80.0030.0254.58
4.3.70.0030.0154.63
4.3.60.0030.0184.63
4.3.50.0010.0174.63
4.3.40.0030.0344.54
4.3.30.0020.0243.28
4.3.20.0020.0203.26
4.3.10.0030.0203.22
4.3.00.0030.0236.86

preferences:
54.69 ms | 401 KiB | 5 Q