3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 'test toto de 2001'; $t1 = preg_match('/de|à/', $t, $matches, PREG_OFFSET_CAPTURE); echo $t1."\r\n"; print_r($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.0110.00418.68
8.3.50.0100.00822.92
8.3.40.0080.00818.96
8.3.30.0140.00019.05
8.3.20.0080.00020.21
8.3.10.0080.00020.69
8.3.00.0030.00520.83
8.2.180.0160.00018.66
8.2.170.0110.00422.96
8.2.160.0030.01120.22
8.2.150.0150.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00019.53
8.2.110.0060.00322.28
8.2.100.0080.00417.97
8.2.90.0040.00419.17
8.2.80.0000.00819.31
8.2.70.0050.00317.50
8.2.60.0050.00317.91
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0070.00019.45
8.2.20.0040.00417.70
8.2.10.0030.00517.99
8.2.00.0040.00417.79
8.1.280.0120.00625.92
8.1.270.0070.01123.97
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0120.00020.69
8.1.230.0040.00720.97
8.1.220.0060.00318.77
8.1.210.0040.00418.85
8.1.200.0030.01017.35
8.1.190.0060.00317.41
8.1.180.0000.00818.10
8.1.170.0040.00418.79
8.1.160.0040.00418.79
8.1.150.0000.00718.75
8.1.140.0040.00417.52
8.1.130.0020.00517.75
8.1.120.0040.00417.44
8.1.110.0000.00917.48
8.1.100.0000.00817.48
8.1.90.0040.00417.47
8.1.80.0000.00717.43
8.1.70.0070.00017.39
8.1.60.0060.00317.56
8.1.50.0040.00417.63
8.1.40.0030.00517.48
8.1.30.0040.00417.69
8.1.20.0040.00417.71
8.1.10.0000.00717.71
8.1.00.0040.00417.44
8.0.300.0030.00320.08
8.0.290.0040.00417.18
8.0.280.0000.00718.45
8.0.270.0070.00017.22
8.0.260.0030.00317.14
8.0.250.0030.00317.07
8.0.240.0060.00517.07
8.0.230.0000.00717.09
8.0.220.0000.00716.92
8.0.210.0070.00016.93
8.0.200.0060.00017.14
8.0.190.0040.00417.07
8.0.180.0070.00017.00
8.0.170.0040.00416.94
8.0.160.0080.00016.96
8.0.150.0030.00516.98
8.0.140.0070.00016.98
8.0.130.0030.00313.43
8.0.120.0040.00416.98
8.0.110.0030.00516.95
8.0.100.0030.00316.84
8.0.90.0040.00417.06
8.0.80.0160.00017.09
8.0.70.0040.00417.01
8.0.60.0040.00416.92
8.0.50.0020.00517.01
8.0.30.0120.00817.30
8.0.20.0110.00817.41
8.0.10.0040.00416.97
8.0.00.0070.01016.85
7.4.330.0020.00215.08
7.4.320.0060.00016.64
7.4.300.0060.00016.53
7.4.290.0070.00016.72
7.4.280.0030.00616.65
7.4.270.0000.00716.63
7.4.260.0040.00316.75
7.4.250.0000.00716.62
7.4.240.0010.00616.70
7.4.230.0070.00016.48
7.4.220.0120.00616.77
7.4.210.0150.00416.59
7.4.200.0080.00016.63
7.4.160.0120.00916.53
7.4.150.0070.01017.40
7.4.140.0090.01217.86
7.4.130.0060.01316.74
7.4.120.0070.01016.51
7.4.110.0070.01016.79
7.4.100.0060.01216.46
7.4.90.0120.00616.72
7.4.80.0090.00919.39
7.4.70.0140.00316.78
7.4.60.0060.01716.55
7.4.50.0060.00316.55
7.4.40.0180.00416.74
7.4.30.0060.01016.38
7.4.00.0030.01015.24
7.3.330.0000.00613.24
7.3.320.0060.00013.10
7.3.310.0030.00316.40
7.3.300.0030.00316.37
7.3.290.0120.00316.38
7.3.280.0100.00916.34
7.3.270.0180.00717.40
7.3.260.0060.01316.41
7.3.250.0090.00816.67
7.3.240.0100.00716.36
7.3.230.0110.00516.68
7.3.210.0120.00616.37
7.3.200.0070.01019.39
7.3.190.0040.01516.58
7.3.180.0060.01316.31
7.3.170.0070.01016.31
7.3.160.0100.00616.69
7.2.330.0090.01216.79
7.2.320.0070.01116.81
7.2.310.0060.01016.82
7.2.300.0120.00616.88
7.2.290.0030.01316.84
7.2.00.0040.01119.71
7.1.100.0090.00618.20
7.1.70.0070.00317.54
7.1.60.0090.01619.34
7.1.50.0060.01116.86
7.1.00.0070.07322.41
7.0.200.0060.00317.03
7.0.140.0030.07022.13
7.0.60.0170.05319.84
7.0.50.0000.04717.88
7.0.40.0100.06720.32
7.0.30.0200.04020.22
7.0.20.0130.04320.17
7.0.10.0070.08720.34
7.0.00.0030.07720.07
5.6.280.0070.07021.09
5.6.210.0100.08320.66
5.6.200.0200.07318.16
5.6.190.0030.07720.50
5.6.180.0130.04720.55
5.6.170.0230.06020.50
5.6.160.0030.08720.58
5.6.150.0000.04018.29
5.6.140.0070.03718.11
5.6.130.0030.07018.28
5.6.120.0070.08020.97
5.6.110.0130.06321.02
5.6.100.0130.08321.03
5.6.90.0100.08320.95
5.6.80.0000.07720.35
5.6.70.4500.04320.47
5.5.350.0000.08320.40
5.5.340.0000.04318.05
5.5.330.0100.05020.38
5.5.320.0200.05020.30
5.5.310.0200.08020.26
5.5.300.0100.03717.98
5.5.290.0000.09018.08
5.5.280.0000.07720.86
5.5.270.0000.09020.79
5.5.260.0130.08020.65
5.5.250.0030.05020.68
5.5.240.0130.04320.14
5.4.450.0300.04719.49
5.4.440.0270.04019.57
5.4.430.0200.04319.46
5.4.420.0100.06019.51
5.4.410.0070.06019.52
5.4.400.0130.04719.25
5.4.390.0170.04719.06
5.4.380.0130.05018.99
5.4.370.0170.04719.09
5.4.360.0230.05019.11
5.4.350.0050.04112.00
5.4.340.0070.04012.00
5.4.320.0070.04012.48
5.4.310.0070.04812.47
5.4.300.0060.03812.48
5.4.290.0090.03712.48
5.4.280.0070.03612.38
5.4.270.0040.04012.37
5.4.260.0100.04312.37
5.4.250.0080.04412.38
5.4.240.0100.04512.37
5.4.230.0080.04012.37
5.4.220.0110.03412.37
5.4.210.0030.03912.37
5.4.200.0040.04112.37
5.4.190.0060.03912.36
5.4.180.0050.04312.36
5.4.170.0110.03812.38
5.4.160.0070.03612.37
5.4.150.0080.03512.37
5.4.140.0080.03712.05
5.4.130.0070.04012.04
5.4.120.0080.04311.99
5.4.110.0070.03912.00
5.4.100.0070.04211.99
5.4.90.0060.03911.99
5.4.80.0060.03711.99
5.4.70.0080.03411.98
5.4.60.0090.04911.99
5.4.50.0040.03711.98
5.4.40.0090.03211.97
5.4.30.0070.03711.97
5.4.20.0070.03411.98
5.4.10.0080.03411.97
5.4.00.0070.04411.47
5.3.290.0070.05212.80
5.3.280.0070.03812.71
5.3.270.0060.04412.72
5.3.260.0080.04712.72
5.3.250.0160.04412.72
5.3.240.0070.04412.72
5.3.230.0150.03212.70
5.3.220.0070.04312.68
5.3.210.0120.04112.68
5.3.200.0060.03912.68
5.3.190.0070.04212.67
5.3.180.0090.04312.67
5.3.170.0090.04112.67
5.3.160.0080.04112.67
5.3.150.0040.04112.68
5.3.140.0090.03612.66
5.3.130.0040.04212.66
5.3.120.0070.03912.66
5.3.110.0090.03712.65
5.3.100.0030.04312.11
5.3.90.0050.03812.10
5.3.80.0090.04312.09
5.3.70.0090.04512.09
5.3.60.0070.04412.08
5.3.50.0050.03912.02
5.3.40.0060.03712.02
5.3.30.0070.04611.98
5.3.20.0100.03311.76
5.3.10.0040.03811.73
5.3.00.0050.03711.71
5.2.170.0070.0299.21
5.2.160.0050.0309.22
5.2.150.0070.0309.22
5.2.140.0070.0369.21
5.2.130.0020.0399.18
5.2.120.0070.0309.17
5.2.110.0070.0289.18
5.2.100.0070.0289.18
5.2.90.0040.0339.18
5.2.80.0060.0349.18
5.2.70.0050.0359.17
5.2.60.0050.0319.13
5.2.50.0060.0319.10
5.2.40.0140.0289.07
5.2.30.0060.0319.05
5.2.20.0060.0329.04
5.2.10.0040.0308.93
5.2.00.0040.0318.79
5.1.60.0030.0288.07
5.1.50.0040.0258.07
5.1.40.0080.0218.05
5.1.30.0030.0278.41
5.1.20.0090.0248.43
5.1.10.0070.0248.15
5.1.00.0050.0258.15
5.0.50.0010.0246.63
5.0.40.0050.0216.49
5.0.30.0040.0366.30
5.0.20.0050.0196.27
5.0.10.0060.0206.25
5.0.00.0060.0356.24
4.4.90.0060.0204.78
4.4.80.0070.0244.75
4.4.70.0050.0184.76
4.4.60.0060.0224.75
4.4.50.0040.0254.77
4.4.40.0030.0334.71
4.4.30.0020.0194.76
4.4.20.0060.0154.84
4.4.10.0080.0154.85
4.4.00.0050.0254.76
4.3.110.0030.0184.66
4.3.100.0030.0164.67
4.3.90.0120.0294.63
4.3.80.0060.0224.59
4.3.70.0010.0164.63
4.3.60.0060.0124.63
4.3.50.0050.0144.63
4.3.40.0010.0274.54
4.3.30.0030.0173.29
4.3.20.0030.0183.27
4.3.10.0050.0203.23
4.3.00.0000.01314.23

preferences:
55.12 ms | 401 KiB | 5 Q