3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "foo"; $exprs = [ '/foo/', '((foo))', '{foo}', '[[foo]]', '<foo>', ]; foreach ($exprs as $expr) { var_dump(preg_match($expr, $subject)); }

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.70.0120.00316.58
8.3.60.0090.00616.75
8.3.50.0050.00922.24
8.3.40.0110.00418.96
8.3.30.0030.01018.96
8.3.20.0040.00420.35
8.3.10.0060.00321.89
8.3.00.0050.00317.64
8.2.180.0100.01018.54
8.2.170.0070.00722.96
8.2.160.0110.00420.44
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.12
8.2.110.0030.00621.17
8.2.100.0040.00817.84
8.2.90.0000.00819.29
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0050.00317.89
8.2.50.0000.00818.07
8.2.40.0080.00018.34
8.2.30.0000.00718.19
8.2.20.0030.00717.83
8.2.10.0040.00418.12
8.2.00.0000.00717.83
8.1.280.0070.01125.92
8.1.270.0030.00623.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.96
8.1.230.0070.00419.15
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00617.48
8.1.190.0040.00417.13
8.1.180.0030.00518.10
8.1.170.0040.00418.60
8.1.160.0040.00422.08
8.1.150.0000.00718.90
8.1.140.0030.00517.60
8.1.130.0000.00717.85
8.1.120.0030.00317.50
8.1.110.0000.00717.62
8.1.100.0000.00717.50
8.1.90.0000.00717.59
8.1.80.0070.00017.62
8.1.70.0030.00317.48
8.1.60.0040.00417.70
8.1.50.0000.00817.52
8.1.40.0040.00417.65
8.1.30.0040.00417.77
8.1.20.0040.00417.90
8.1.10.0040.00417.60
8.1.00.0030.00517.48
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.46
8.0.270.0050.00317.24
8.0.260.0030.00318.45
8.0.250.0000.00717.07
8.0.240.0030.00316.98
8.0.230.0050.00217.11
8.0.220.0000.00716.93
8.0.210.0000.00716.96
8.0.200.0080.00017.07
8.0.190.0030.00317.06
8.0.180.0080.00017.07
8.0.170.0000.00717.05
8.0.160.0070.00016.91
8.0.150.0070.00016.93
8.0.140.0080.00016.97
8.0.130.0000.00713.41
8.0.120.0070.00317.02
8.0.110.0080.00017.10
8.0.100.0000.00717.07
8.0.90.0000.00817.06
8.0.80.0070.01416.93
8.0.70.0080.00017.07
8.0.60.0050.00317.02
8.0.50.0070.00017.14
8.0.30.0070.01417.12
8.0.20.0070.01217.40
8.0.10.0040.00417.19
8.0.00.0020.01616.86
7.4.330.0050.00015.13
7.4.320.0000.00616.70
7.4.300.0000.00716.79
7.4.290.0070.00016.71
7.4.280.0040.00416.59
7.4.270.0070.00016.81
7.4.260.0040.00416.79
7.4.250.0080.00016.73
7.4.240.0030.00416.81
7.4.230.0070.00016.80
7.4.220.0090.00916.66
7.4.210.0090.00616.67
7.4.200.0000.00816.78
7.4.160.0130.00416.63
7.4.150.0070.01717.40
7.4.140.0110.00817.86
7.4.130.0120.00516.63
7.4.120.0110.00716.86
7.4.110.0100.00716.75
7.4.100.0070.01016.79
7.4.90.0060.01216.88
7.4.80.0100.01019.39
7.4.70.0100.00716.57
7.4.60.0090.00816.53
7.4.50.0000.00916.70
7.4.40.0070.01016.80
7.4.30.0110.00516.74
7.4.00.0050.01315.14
7.3.330.0060.00013.30
7.3.320.0000.00513.30
7.3.310.0030.00316.45
7.3.300.0040.00416.45
7.3.290.0080.00516.52
7.3.280.0070.01116.40
7.3.270.0130.00317.40
7.3.260.0060.01216.46
7.3.250.0060.01116.59
7.3.240.0100.00716.63
7.3.230.0100.00716.48
7.3.210.0090.00916.52
7.3.200.0120.00919.39
7.3.190.0160.00616.43
7.3.180.0120.00516.43
7.3.170.0040.01216.82
7.3.160.0080.00816.80
7.3.120.0050.01214.97
7.3.110.0070.01114.73
7.3.100.0030.01515.25
7.3.90.0040.01115.11
7.3.80.0060.00915.13
7.3.70.0100.00314.97
7.3.60.0070.00714.83
7.3.50.0040.00714.70
7.3.40.0030.00914.66
7.3.30.0000.00915.07
7.3.20.0030.01016.67
7.3.10.0020.00916.74
7.3.00.0100.00316.85
7.2.330.0080.00816.66
7.2.320.0040.01516.56
7.2.310.0070.01116.71
7.2.300.0060.01116.66
7.2.290.0090.00916.82
7.2.250.0100.01015.16
7.2.240.0030.01715.27
7.2.230.0060.01215.09
7.2.220.0000.01515.18
7.2.210.0060.00615.18
7.2.200.0050.00515.13
7.2.190.0100.00315.26
7.2.180.0030.00715.22
7.2.170.0060.00915.30
7.2.130.0110.00016.78
7.2.120.0030.01216.93
7.2.110.0070.01017.14
7.2.100.0090.00617.12
7.2.90.0120.00017.09
7.2.80.0070.00716.91
7.2.70.0070.00717.09
7.2.60.0070.01017.10
7.2.50.0090.01417.04
7.2.40.0060.00916.97
7.2.30.0040.01117.18
7.2.20.0100.00317.08
7.2.10.0110.01117.09
7.2.00.0060.00818.26
7.1.330.0050.00816.01
7.1.320.0100.00615.95
7.1.310.0060.00615.79
7.1.300.0060.00616.01
7.1.290.0030.00916.04
7.1.280.0060.00616.02
7.1.270.0070.00415.86
7.1.260.0070.00315.74
7.1.250.0080.00815.63
7.1.200.0030.00915.90
7.1.100.0040.01118.21
7.1.70.0060.00317.29
7.1.60.0070.01719.70
7.1.50.0000.01117.26
7.1.00.0070.07322.37
7.0.200.0000.00716.96
7.0.140.0070.07021.95
7.0.60.0070.08319.94
7.0.50.0000.05717.90
7.0.40.0030.06320.31
7.0.30.0330.06320.11
7.0.20.0430.07320.24
7.0.10.0070.04720.15
7.0.00.0030.06320.32
5.6.280.0070.06720.89
5.6.210.0070.07320.70
5.6.200.0030.05718.09
5.6.190.0070.08720.61
5.6.180.0300.06320.57
5.6.170.0270.06020.49
5.6.160.0030.04320.44
5.6.150.0030.04318.17
5.6.140.0070.08018.19
5.6.130.0070.08718.21
5.6.120.0130.07721.12
5.6.110.0130.08021.03
5.6.100.0070.03721.12
5.6.90.0030.07021.01
5.6.80.0000.04320.38
5.5.350.0200.08020.43
5.5.340.0030.05317.89
5.5.330.0070.07020.59
5.5.320.0270.04720.32
5.5.310.0500.06320.21
5.5.300.0130.06717.98
5.5.290.0070.08318.01
5.5.280.0200.06320.88
5.5.270.0070.08020.86
5.5.260.0130.05320.86
5.5.250.0130.08320.61
5.5.240.0030.08320.11
5.4.450.0530.07019.50
5.4.440.0170.05719.11
5.4.430.0270.04719.63
5.4.420.0230.05019.63
5.4.410.0100.05018.96
5.4.400.0300.05318.81
5.4.390.0470.06718.59
5.4.380.0070.05318.56
5.4.370.0100.03318.76
5.4.360.0030.04018.41
5.4.350.0080.03511.97
5.4.340.0080.03411.97
5.4.320.0050.04212.46
5.4.310.0080.03912.45
5.4.300.0070.05212.46
5.4.290.0070.04212.45
5.4.280.0070.03512.35
5.4.270.0060.03912.35
5.4.260.0080.03812.35
5.4.250.0060.03812.35
5.4.240.0060.03712.35
5.4.230.0060.04312.34
5.4.220.0090.04012.34
5.4.210.0070.04712.34
5.4.200.0090.05012.34
5.4.190.0120.04012.34
5.4.180.0150.04612.34
5.4.170.0040.04312.35
5.4.160.0080.03812.35
5.4.150.0090.04412.34
5.4.140.0080.04012.03
5.4.130.0070.03712.02
5.4.120.0100.03211.97
5.4.110.0080.03911.96
5.4.100.0120.04311.96
5.4.90.0100.04711.97
5.4.80.0050.04011.96
5.4.70.0080.04011.96
5.4.60.0060.03411.96
5.4.50.0050.03711.96
5.4.40.0090.03211.95
5.4.30.0020.04011.95
5.4.20.0090.03211.95
5.4.10.0040.03711.95
5.4.00.0070.03511.44
5.3.290.0060.03912.80
5.3.280.0070.03712.71
5.3.270.0050.04112.73
5.3.260.0080.04812.72
5.3.250.0070.03512.72
5.3.240.0070.04012.72
5.3.230.0080.03712.71
5.3.220.0050.04012.68
5.3.210.0050.04012.68
5.3.200.0050.04312.68
5.3.190.0060.05312.68
5.3.180.0080.03612.67
5.3.170.0060.04012.67
5.3.160.0070.03812.67
5.3.150.0070.04112.67
5.3.140.0070.04712.66
5.3.130.0070.04712.66
5.3.120.0060.04012.65
5.3.110.0090.03612.66
5.3.100.0070.03612.12
5.3.90.0060.03712.08
5.3.80.0070.04012.08
5.3.70.0040.03812.07
5.3.60.0070.03512.07
5.3.50.0090.03312.00
5.3.40.0060.03712.00
5.3.30.0060.03611.95
5.3.20.0090.03311.72
5.3.10.0060.03511.70
5.3.00.0040.03911.68
5.2.170.0040.0319.18
5.2.160.0070.0299.18
5.2.150.0060.0309.18
5.2.140.0040.0349.18
5.2.130.0030.0309.14
5.2.120.0030.0309.14
5.2.110.0080.0269.15
5.2.100.0060.0289.14
5.2.90.0040.0309.14
5.2.80.0090.0269.14
5.2.70.0060.0299.14
5.2.60.0060.0299.09
5.2.50.0050.0319.05
5.2.40.0050.0299.04
5.2.30.0040.0309.02
5.2.20.0030.0309.00
5.2.10.0070.0268.93
5.2.00.0040.0308.78
5.1.60.0050.0258.06
5.1.50.0040.0258.06
5.1.40.0040.0248.04
5.1.30.0030.0278.40
5.1.20.0040.0268.42
5.1.10.0030.0278.14
5.1.00.0030.0288.14
5.0.50.0030.0216.62
5.0.40.0020.0266.48
5.0.30.0040.0376.29
5.0.20.0040.0196.27
5.0.10.0030.0206.24
5.0.00.0030.0326.24
4.4.90.0040.0154.78
4.4.80.0010.0174.75
4.4.70.0010.0214.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0010.0174.85
4.4.00.0010.0264.76
4.3.110.0020.0184.67
4.3.100.0040.0144.66
4.3.90.0030.0154.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0040.0144.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0020.0153.28
4.3.20.0000.0183.26
4.3.10.0020.0163.22
4.3.00.0170.0178.35

preferences:
53.57 ms | 401 KiB | 5 Q