3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = ['pag=0', '..page=1', 'page=0', 'shmage-page=1', 'test']; foreach ($strings as $string) { $matches = []; if (preg_match('/page=1/', $string, $matches) === 1) { 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.01118.43
8.3.50.0090.01122.10
8.3.40.0090.00618.84
8.3.30.0170.00018.81
8.3.20.0070.00020.38
8.3.10.0050.00323.63
8.3.00.0080.00017.80
8.2.180.0180.00016.88
8.2.170.0120.00322.96
8.2.160.0060.00920.45
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.01
8.2.110.0060.00319.29
8.2.100.0000.01217.91
8.2.90.0030.00519.05
8.2.80.0080.00017.97
8.2.70.0120.00017.36
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.00818.16
8.2.30.0080.00018.28
8.2.20.0070.00017.74
8.2.10.0080.00018.06
8.2.00.0000.00819.67
8.1.280.0110.00425.92
8.1.270.0000.00823.74
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00722.05
8.1.230.0080.00420.61
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.48
8.1.190.0060.00317.38
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0040.00422.04
8.1.150.0040.00418.85
8.1.140.0040.00417.63
8.1.130.0000.00817.89
8.1.120.0000.00717.68
8.1.110.0000.00817.49
8.1.100.0000.00717.59
8.1.90.0020.00517.61
8.1.80.0020.00517.61
8.1.70.0030.00317.55
8.1.60.0040.00417.64
8.1.50.0050.00317.72
8.1.40.0030.00617.63
8.1.30.0040.00417.65
8.1.20.0000.00817.71
8.1.10.0000.00717.70
8.1.00.0000.00817.52
8.0.300.0030.00518.77
8.0.290.0070.00016.88
8.0.280.0030.00318.38
8.0.270.0000.00817.20
8.0.260.0060.00017.27
8.0.250.0030.00517.08
8.0.240.0060.00317.09
8.0.230.0000.00817.00
8.0.220.0030.00316.96
8.0.210.0000.00716.92
8.0.200.0060.00017.11
8.0.190.0000.00717.07
8.0.180.0040.00417.04
8.0.170.0050.00317.01
8.0.160.0030.00316.91
8.0.150.0060.00316.90
8.0.140.0040.00416.95
8.0.130.0000.00713.44
8.0.120.0080.00016.96
8.0.110.0000.00717.01
8.0.100.0040.00416.81
8.0.90.0000.00816.95
8.0.80.0060.01116.99
8.0.70.0070.00016.90
8.0.60.0000.00816.93
8.0.50.0000.00716.86
8.0.30.0100.00917.43
8.0.20.0040.01417.40
8.0.10.0070.00017.04
8.0.00.0110.00617.08
7.4.330.0030.00315.22
7.4.320.0000.00716.76
7.4.300.0000.00716.80
7.4.290.0040.00416.84
7.4.280.0040.00416.62
7.4.270.0030.00316.71
7.4.260.0030.00316.80
7.4.250.0070.00016.69
7.4.240.0070.00016.78
7.4.230.0070.00016.63
7.4.220.0130.00716.70
7.4.210.0070.00716.88
7.4.200.0000.00716.73
7.4.160.0110.00516.76
7.4.150.0140.00517.40
7.4.140.0090.01217.86
7.4.130.0100.00716.71
7.4.120.0100.01116.73
7.4.110.0060.01416.68
7.4.100.0070.01016.46
7.4.90.0120.00616.76
7.4.80.0240.02019.39
7.4.70.0120.00416.58
7.4.60.0100.00716.47
7.4.50.0000.00616.54
7.4.40.0190.00016.50
7.4.30.0060.01016.57
7.4.00.0030.01314.91
7.3.330.0000.00513.21
7.3.320.0000.00513.14
7.3.310.0030.00316.55
7.3.300.0040.00416.31
7.3.290.0090.00716.46
7.3.280.0090.01016.46
7.3.270.0000.01717.40
7.3.260.0110.00716.75
7.3.250.0110.01316.60
7.3.240.0160.00616.37
7.3.230.0100.00616.48
7.3.210.0110.00716.41
7.3.200.0180.00419.39
7.3.190.0060.01616.47
7.3.180.0120.00316.38
7.3.170.0070.01016.51
7.3.160.0090.00816.41
7.3.120.0110.00414.91
7.3.10.0110.00416.73
7.3.00.0060.00616.91
7.2.330.0030.01316.70
7.2.320.0170.00016.72
7.2.310.0130.01316.81
7.2.300.0170.00016.64
7.2.290.0070.01016.56
7.2.130.0040.00817.05
7.2.120.0040.01217.14
7.2.110.0100.00716.82
7.2.100.0030.00717.08
7.2.90.0040.01117.02
7.2.80.0130.00016.81
7.2.70.0000.01217.13
7.2.60.0070.00716.99
7.2.50.0060.00616.96
7.2.40.0120.00317.20
7.2.30.0070.00717.30
7.2.20.0100.00717.09
7.2.10.0080.00317.14
7.2.00.0060.00918.43
7.1.250.0050.00515.98
7.1.200.0030.01016.02
7.1.100.0060.00618.25
7.1.70.0000.00917.38
7.1.60.0100.01419.70
7.1.50.0060.01617.05
7.1.00.0070.07322.32
7.0.200.0030.00616.93
7.0.140.0100.06322.19
7.0.60.0100.08019.95
7.0.50.0100.04317.87
7.0.40.0070.06020.04
7.0.30.0300.03720.32
7.0.20.0270.08020.31
7.0.10.0370.03020.01
7.0.00.0130.05720.02
5.6.280.0070.06721.15
5.6.210.0070.05020.62
5.6.200.0170.06018.09
5.6.190.0030.04320.39
5.6.180.0100.07020.46
5.6.170.0170.04720.62
5.6.160.0000.04320.49
5.6.150.0030.04018.23
5.6.140.0100.07318.22
5.6.130.0100.07718.13
5.6.120.0230.07020.89
5.6.110.0100.07721.11
5.6.100.0070.08720.93
5.6.90.0100.08321.13
5.6.80.0170.05720.52
5.6.70.0200.05720.49
5.5.350.0230.06320.43
5.5.340.0100.04318.01
5.5.330.0000.06320.14
5.5.320.0000.05720.15
5.5.310.0300.07720.30
5.5.300.0030.04717.98
5.5.290.0100.07717.98
5.5.280.0070.06720.87
5.5.270.0070.08720.77
5.5.260.0070.06020.96
5.5.250.0070.08720.69
5.5.240.0100.07720.18
5.4.450.0270.04319.63
5.4.440.0130.06019.54
5.4.430.0800.05719.53
5.4.420.0730.06319.57
5.4.410.0200.06718.77
5.4.400.0400.05718.66
5.4.390.0300.07318.72
5.4.380.0130.05318.69
5.4.370.0070.05018.50
5.4.360.0130.04718.48
5.4.350.0120.05911.98
5.4.340.0060.03511.97
5.4.320.0070.03812.46
5.4.310.0050.04212.45
5.4.300.0090.03412.46
5.4.290.0040.04112.45
5.4.280.0030.03912.35
5.4.270.0060.03812.35
5.4.260.0070.03612.35
5.4.250.0060.03712.35
5.4.240.0080.04212.35
5.4.230.0100.03612.34
5.4.220.0070.03512.34
5.4.210.0070.03612.34
5.4.200.0080.03412.34
5.4.190.0070.03512.34
5.4.180.0040.03812.34
5.4.170.0050.03712.35
5.4.160.0060.04212.34
5.4.150.0040.03712.34
5.4.140.0060.03712.02
5.4.130.0080.04212.02
5.4.120.0060.03511.97
5.4.110.0050.03611.97
5.4.100.0060.03511.96
5.4.90.0060.03711.97
5.4.80.0070.03611.97
5.4.70.0060.03511.96
5.4.60.0080.03211.96
5.4.50.0050.03611.96
5.4.40.0060.03511.95
5.4.30.0040.03811.95
5.4.20.0030.03811.95
5.4.10.0060.03511.95
5.4.00.0080.03311.44
5.3.290.0080.03912.80
5.3.280.0050.04012.71
5.3.270.0060.03812.72
5.3.260.0080.03712.72
5.3.250.0050.03812.72
5.3.240.0050.03812.72
5.3.230.0070.03712.71
5.3.220.0070.03512.68
5.3.210.0050.04012.68
5.3.200.0110.03312.68
5.3.190.0050.03912.68
5.3.180.0070.03612.67
5.3.170.0030.03912.66
5.3.160.0060.03712.68
5.3.150.0050.04012.67
5.3.140.0070.04112.66
5.3.130.0070.03812.65
5.3.120.0050.03912.66
5.3.110.0060.04612.66
5.3.100.0050.04012.12
5.3.90.0080.03412.08
5.3.80.0030.04012.07
5.3.70.0080.03412.08
5.3.60.0070.03712.07
5.3.50.0040.03912.00
5.3.40.0070.03712.00
5.3.30.0020.03811.95
5.3.20.0080.03411.73
5.3.10.0060.03511.70
5.3.00.0050.03711.68
5.2.170.0060.0309.18
5.2.160.0050.0299.18
5.2.150.0060.0299.18
5.2.140.0090.0319.18
5.2.130.0070.0269.14
5.2.120.0060.0289.14
5.2.110.0050.0299.14
5.2.100.0040.0309.14
5.2.90.0020.0329.14
5.2.80.0080.0279.14
5.2.70.0050.0309.14
5.2.60.0030.0329.09
5.2.50.0030.0319.05
5.2.40.0050.0299.04
5.2.30.0060.0299.02
5.2.20.0050.0289.01
5.2.10.0050.0288.92
5.2.00.0050.0318.78
5.1.60.0030.0258.07
5.1.50.0050.0248.06
5.1.40.0020.0268.05
5.1.30.0070.0238.39
5.1.20.0020.0298.41
5.1.10.0030.0268.14
5.1.00.0050.0258.14
5.0.50.0040.0206.62
5.0.40.0030.0196.48
5.0.30.0030.0316.29
5.0.20.0030.0206.27
5.0.10.0040.0196.23
5.0.00.0010.0336.23
4.4.90.0020.0164.78
4.4.80.0060.0124.75
4.4.70.0050.0184.75
4.4.60.0020.0164.75
4.4.50.0030.0154.77
4.4.40.0030.0294.71
4.4.30.0030.0174.76
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0050.0224.76
4.3.110.0020.0164.67
4.3.100.0010.0174.67
4.3.90.0030.0144.64
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0010.0173.29
4.3.20.0020.0153.26
4.3.10.0030.0153.22
4.3.00.0030.0237.56

preferences:
42.28 ms | 401 KiB | 5 Q