3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "This is my test string that needs to be matched and not the test keywords following it"; if (preg_match("/(.*?)test/", $text, $match)) { print_r($match); } if (preg_match("/^(.*?)test/", $text, $match)) { print_r($match); } if (preg_match("/(.*)test/", $text, $match)) { print_r($match); } ?>

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.31
8.3.50.0100.00921.27
8.3.40.0150.00618.83
8.3.30.0100.00720.34
8.3.20.0110.00418.89
8.3.10.0000.00820.98
8.3.00.0000.00723.56
8.2.180.0090.01316.88
8.2.170.0090.00622.96
8.2.160.0130.00020.45
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.01
8.2.110.0090.00019.30
8.2.100.0000.01217.91
8.2.90.0080.00019.14
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0080.00017.91
8.2.50.0000.00818.07
8.2.40.0000.00818.09
8.2.30.0040.00419.52
8.2.20.0030.00517.62
8.2.10.0040.00417.78
8.2.00.0000.00817.82
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0060.00328.09
8.1.240.0030.00722.50
8.1.230.0110.00020.87
8.1.220.0000.00818.77
8.1.210.0050.00318.77
8.1.200.0090.00017.50
8.1.190.0040.00417.41
8.1.180.0050.00518.10
8.1.170.0080.00018.74
8.1.160.0050.00318.80
8.1.150.0040.00418.73
8.1.140.0000.00717.54
8.1.130.0000.00817.53
8.1.120.0040.00417.63
8.1.110.0030.00317.53
8.1.100.0000.00717.50
8.1.90.0050.00317.56
8.1.80.0040.00417.55
8.1.70.0000.00717.47
8.1.60.0080.00017.71
8.1.50.0040.00417.51
8.1.40.0040.00417.52
8.1.30.0000.00817.57
8.1.20.0040.00417.69
8.1.10.0040.00417.67
8.1.00.0040.00817.53
8.0.300.0070.00019.88
8.0.290.0000.00717.18
8.0.280.0000.00718.39
8.0.270.0030.00316.78
8.0.260.0080.00016.87
8.0.250.0030.00317.07
8.0.240.0000.00816.97
8.0.230.0000.00717.02
8.0.220.0070.00016.89
8.0.210.0000.00716.91
8.0.200.0030.00617.07
8.0.190.0050.00216.97
8.0.180.0030.00517.01
8.0.170.0040.00416.91
8.0.160.0000.00716.95
8.0.150.0050.00316.96
8.0.140.0040.00416.85
8.0.130.0000.00613.40
8.0.120.0000.00716.96
8.0.110.0000.00716.94
8.0.100.0040.00417.01
8.0.90.0040.00417.04
8.0.80.0100.01316.85
8.0.70.0050.00316.91
8.0.60.0060.00317.02
8.0.50.0050.00316.87
8.0.30.0060.01317.07
8.0.20.0120.00717.40
8.0.10.0000.00816.93
8.0.00.0130.00916.80
7.4.330.0000.00715.07
7.4.320.0070.00016.57
7.4.300.0070.00016.60
7.4.290.0040.00416.62
7.4.280.0030.00316.65
7.4.270.0030.00316.68
7.4.260.0000.00613.54
7.4.250.0000.00816.63
7.4.240.0000.00716.79
7.4.230.0070.00016.57
7.4.220.0090.00916.71
7.4.210.0060.01216.71
7.4.200.0030.00316.68
7.4.190.0050.00216.82
7.4.160.0070.01016.75
7.4.150.0100.01017.40
7.4.140.0070.01117.86
7.4.130.0070.01116.66
7.4.120.0130.00616.66
7.4.110.0130.00416.50
7.4.100.0140.00416.59
7.4.90.0060.01216.50
7.4.80.0090.00919.39
7.4.70.0150.00916.66
7.4.60.0030.01416.50
7.4.50.0030.00616.62
7.4.40.0050.00522.77
7.4.30.0140.00416.56
7.4.00.0060.00914.97
7.3.330.0030.00313.26
7.3.320.0000.00613.21
7.3.310.0090.00016.40
7.3.300.0000.00616.30
7.3.290.0040.01116.27
7.3.280.0080.00816.29
7.3.270.0120.00617.40
7.3.260.0100.00918.24
7.3.250.0110.01016.49
7.3.240.0090.00916.66
7.3.230.0030.01316.39
7.3.210.0060.01116.82
7.3.200.0060.01219.39
7.3.190.0130.00916.49
7.3.180.0120.00316.51
7.3.170.0060.01616.46
7.3.160.0090.01216.27
7.3.120.0070.00714.43
7.3.110.0030.01015.09
7.3.100.0030.00714.68
7.3.90.0110.00314.61
7.3.80.0030.01014.70
7.3.70.0070.00714.78
7.3.60.0030.01614.84
7.3.50.0030.00614.97
7.3.40.0120.00314.80
7.3.30.0090.00614.65
7.3.20.0000.01316.63
7.3.10.0100.00316.45
7.3.00.0090.00616.52
7.2.330.0000.01716.53
7.2.320.0230.00016.75
7.2.310.0060.01516.66
7.2.300.0070.01416.59
7.2.290.0070.01016.77
7.2.240.0090.00914.95
7.2.230.0130.00315.08
7.2.220.0060.00914.86
7.2.210.0120.00614.92
7.2.200.0080.00815.11
7.2.190.0100.00714.89
7.2.180.0090.00614.95
7.2.170.0060.00915.17
7.2.160.0140.00015.11
7.2.150.0000.01216.69
7.2.140.0030.01116.84
7.2.130.0100.00016.79
7.2.120.0060.00917.01
7.2.110.0060.00616.49
7.2.100.0100.00616.86
7.2.90.0110.00716.86
7.2.80.0080.00816.94
7.2.70.0030.00616.94
7.2.60.0050.00516.80
7.2.50.0030.01016.79
7.2.40.0080.00816.69
7.2.30.0100.00716.71
7.2.20.0060.01216.54
7.2.10.0000.01316.96
7.2.00.0040.01416.94
7.1.330.0000.01815.97
7.1.320.0000.00915.92
7.1.310.0030.01016.01
7.1.300.0060.01315.78
7.1.290.0070.00715.78
7.1.280.0060.00615.81
7.1.270.0040.01116.01
7.1.260.0000.01415.84
7.1.250.0040.01115.85
7.1.200.0050.00316.06
7.1.100.0000.01118.28
7.1.70.0050.00217.00
7.1.60.0040.00817.51
7.1.50.0070.00316.76
7.1.40.0030.01016.82
7.1.30.0040.00816.81
7.1.20.0080.00416.98
7.1.10.0080.00016.72
7.1.00.0000.00917.09
7.0.200.0000.00816.93
7.0.190.0000.00816.92
7.0.180.0000.00816.64
7.0.170.0040.00416.33
7.0.160.0030.00616.45
7.0.150.0000.00716.35
7.0.140.0000.00816.67
7.0.130.0030.00616.67
7.0.120.0000.01016.62
7.0.110.0040.00416.36
7.0.100.0040.00416.66
7.0.90.0040.00416.80
7.0.80.0000.00916.48
7.0.70.0000.00916.55
7.0.60.0040.00416.53
7.0.50.0030.00616.64
7.0.40.0030.00614.84
7.0.30.0000.00814.84
7.0.20.0030.00514.84
7.0.10.0040.00414.84
7.0.00.0040.00414.84
5.6.300.0060.03820.91
5.6.290.0030.04320.91
5.6.280.0070.04020.88
5.6.270.0030.04721.07
5.6.260.0070.04020.89
5.6.250.0030.04520.91
5.6.240.0000.04920.91
5.6.230.0100.03720.86
5.6.220.0030.04521.05
5.6.210.0070.04020.61
5.6.200.0100.04721.05
5.6.190.0130.03520.80
5.6.180.0070.03621.05
5.6.170.0000.04520.83
5.6.160.0030.04420.77
5.6.150.0070.04120.85
5.6.140.0030.07320.82
5.6.130.0040.03920.99
5.6.120.0000.04620.82
5.6.110.0030.04020.98
5.6.100.0100.04220.82
5.6.90.0170.04020.69
5.6.80.0000.04120.16
5.6.70.0130.03120.43
5.6.60.0030.04120.12
5.6.50.0030.04020.22
5.6.40.0330.04320.29
5.6.30.0170.04420.19
5.6.20.0070.03820.18
5.6.10.0000.06020.20
5.6.00.0000.05120.29
5.5.380.0130.03017.50
5.5.370.0070.03417.62
5.5.360.0000.05117.49
5.5.350.0030.04117.47
5.5.340.0000.04817.71
5.5.330.0030.04218.00
5.5.320.0070.07218.09
5.5.310.0030.04718.18
5.5.300.0100.03817.72
5.5.290.0030.05318.09
5.5.280.0000.04818.17
5.5.270.0200.04617.85
5.5.260.0300.04417.82
5.5.250.0030.04217.79
5.5.240.0030.03617.39
5.5.230.0000.04417.40
5.5.220.0030.04717.41
5.5.210.0000.04517.38
5.5.200.0000.04617.48
5.5.190.0000.04017.48
5.5.180.0000.04817.47
5.5.160.0070.07717.38
5.5.150.0000.04317.20
5.5.140.0000.04517.36
5.5.130.0000.04217.36
5.5.120.0100.03317.34
5.5.110.0000.04417.08
5.5.100.0000.04017.35
5.5.90.0000.03916.95
5.5.80.0030.03717.38
5.5.70.0070.03617.36
5.5.60.0000.04417.30
5.5.50.0030.03717.37
5.5.40.0070.05317.30
5.5.30.0070.03416.94
5.5.20.0000.04317.33
5.5.10.0070.03817.21
5.5.00.0030.04117.41
5.4.450.0030.04319.30
5.4.440.0000.04819.30
5.4.430.0000.04619.52
5.4.420.0000.04719.30
5.4.410.0000.04319.27
5.4.400.0030.03919.21
5.4.390.0000.04419.11
5.4.380.0030.04118.92
5.4.370.0060.03519.16
5.4.360.0100.03419.09
5.4.350.0000.04918.97
5.4.340.0030.04418.94
5.4.320.0100.03819.08
5.4.310.0030.04118.99
5.4.300.0000.04219.23
5.4.290.0040.03918.91
5.4.280.0000.04919.08
5.4.270.0000.04319.07
5.4.260.0030.03719.16
5.4.250.0060.03819.06
5.4.240.0030.04219.20
5.4.230.0000.05219.02
5.4.220.0060.04819.20
5.4.210.0070.04418.97
5.4.200.0000.08119.10
5.4.190.0030.04218.98
5.4.180.0170.03719.19
5.4.170.0030.04019.19
5.4.160.0030.06219.14
5.4.150.0070.04319.11
5.4.140.0060.03516.82
5.4.130.0030.03816.55
5.4.120.0000.03616.71
5.4.110.0060.03216.80
5.4.100.0060.03916.68
5.4.90.0000.04216.53
5.4.80.0030.03616.79
5.4.70.0000.04116.45
5.4.60.0030.03316.45
5.4.50.0070.05816.68
5.4.40.0040.03516.61
5.4.30.0000.06116.59
5.4.20.0070.04016.38
5.4.10.0000.04416.61
5.4.00.0000.03915.90
5.3.290.0000.04314.92
5.3.280.0130.05314.84
5.3.270.0030.03914.95
5.3.260.0000.04314.84
5.3.250.0030.03414.86
5.3.240.0070.04714.86
5.3.230.0060.03514.89
5.3.220.0130.02814.84
5.3.210.0030.06214.86
5.3.200.0100.04114.84
5.3.190.0060.03814.84
5.3.180.0070.04014.84
5.3.170.0070.03314.84
5.3.160.0130.03614.84
5.3.150.0070.03614.84
5.3.140.0000.04114.84
5.3.130.0030.05014.84
5.3.120.0070.04314.84
5.3.110.0030.04014.89
5.3.100.0000.03814.84
5.3.90.0030.03814.84
5.3.80.0030.07314.84
5.3.70.0000.04314.84
5.3.60.0000.04114.84
5.3.50.0030.03614.84
5.3.40.0140.03414.84
5.3.30.0030.03714.84
5.3.20.0060.03214.84
5.3.10.0000.03914.84
5.3.00.0030.03614.84

preferences:
41.44 ms | 401 KiB | 5 Q