3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = "1111ewrw__"; preg_match("/(\w+)?/", "1ewrw",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "rwerwe",$matches); 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.40.0090.00618.79
8.3.30.0070.00718.79
8.3.20.0000.00720.16
8.3.10.0040.00423.45
8.3.00.0030.00519.51
8.2.170.0140.00322.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00417.63
8.2.110.0090.00322.37
8.2.100.0090.00317.80
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0060.00317.88
8.2.60.0050.00318.00
8.2.50.0040.00418.07
8.2.40.0050.00419.47
8.2.30.0040.00420.66
8.2.20.0050.00317.70
8.2.10.0080.00017.89
8.2.00.0070.00017.89
8.1.270.0000.00823.97
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00322.46
8.1.230.0090.00317.66
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00718.93
8.1.160.0000.00721.90
8.1.150.0000.00718.72
8.1.140.0000.00919.54
8.1.130.0030.00317.57
8.1.120.0040.00417.53
8.1.110.0000.00817.46
8.1.100.0040.00417.51
8.1.90.0030.00617.57
8.1.80.0080.00017.53
8.1.70.0000.00817.48
8.1.60.0060.00317.61
8.1.50.0040.00417.59
8.1.40.0040.00417.50
8.1.30.0000.00817.63
8.1.20.0000.00717.73
8.1.10.0070.00017.66
8.1.00.0030.00617.61
8.0.300.0030.00518.84
8.0.290.0000.00816.75
8.0.280.0000.00718.43
8.0.270.0000.00717.27
8.0.260.0030.00317.28
8.0.250.0000.00817.04
8.0.240.0030.00316.93
8.0.230.0030.00317.04
8.0.220.0040.00416.95
8.0.210.0040.00416.96
8.0.200.0030.00316.92
8.0.190.0040.00416.89
8.0.180.0040.00417.02
8.0.170.0080.00016.88
8.0.160.0040.00416.94
8.0.150.0050.00216.88
8.0.140.0040.00416.95
8.0.130.0000.00513.31
8.0.120.0050.00316.99
8.0.110.0040.00416.79
8.0.100.0040.00416.96
8.0.90.0040.00416.88
8.0.80.0080.00816.98
8.0.70.0040.00416.77
8.0.60.0070.00016.86
8.0.50.0070.00016.97
8.0.30.0110.00917.17
8.0.20.0070.01117.47
8.0.10.0000.00717.09
8.0.00.0090.01116.92
7.4.330.0000.00515.08
7.4.320.0000.00616.75
7.4.300.0060.00016.64
7.4.290.0090.00016.69
7.4.280.0040.00416.75
7.4.270.0030.00316.62
7.4.260.0030.00316.57
7.4.250.0000.00716.70
7.4.240.0050.00216.73
7.4.230.0070.00016.73
7.4.220.0060.01616.68
7.4.210.0110.00416.75
7.4.200.0070.00016.82
7.4.160.0120.00416.63
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0110.00716.68
7.4.120.0030.01416.70
7.4.110.0120.01116.61
7.4.100.0080.00916.59
7.4.90.0080.00916.53
7.4.80.0090.00919.39
7.4.70.0070.01016.34
7.4.60.0120.00916.69
7.4.50.0060.00316.77
7.4.40.0030.01316.73
7.4.30.0080.00816.54
7.4.10.0040.01115.21
7.4.00.0080.00814.95
7.3.330.0050.00013.27
7.3.320.0000.00513.26
7.3.310.0030.00316.42
7.3.300.0000.00716.29
7.3.290.0080.00716.25
7.3.280.0080.01116.27
7.3.270.0070.01017.40
7.3.260.0090.00916.50
7.3.250.0130.00616.49
7.3.240.0140.00516.43
7.3.230.0080.00816.56
7.3.210.0160.00316.44
7.3.200.0130.00516.58
7.3.190.0090.00616.30
7.3.180.0030.01316.48
7.3.170.0060.01116.72
7.3.160.0130.00316.21
7.3.130.0080.01214.85
7.3.120.0070.00714.76
7.3.110.0060.01015.07
7.3.100.0030.01015.04
7.3.90.0040.01114.71
7.3.80.0060.00714.91
7.3.70.0060.00814.79
7.3.60.0090.00314.60
7.3.50.0060.00914.63
7.3.40.0060.00914.94
7.3.30.0060.00914.93
7.3.20.0090.00616.53
7.3.10.0060.00616.78
7.3.00.0030.01216.82
7.2.330.0110.01316.61
7.2.320.0180.00416.69
7.2.310.0030.01416.77
7.2.300.0080.00816.41
7.2.290.0140.00716.77
7.2.260.0090.00915.04
7.2.250.0100.01015.04
7.2.240.0040.01114.96
7.2.230.0040.01115.16
7.2.220.0030.00715.06
7.2.210.0030.01315.14
7.2.200.0040.01115.34
7.2.190.0140.00315.11
7.2.180.0000.01415.03
7.2.170.0070.00415.06
7.2.160.0100.00715.12
7.2.150.0100.00317.10
7.2.140.0060.00616.88
7.2.130.0100.00316.93
7.2.120.0050.00916.91
7.2.110.0060.00616.85
7.2.100.0060.00916.95
7.2.90.0030.01116.92
7.2.80.0090.00716.96
7.2.70.0070.00816.88
7.2.60.0050.00716.93
7.2.50.0080.00617.06
7.2.40.0050.00816.86
7.2.30.0010.01016.83
7.2.20.0050.01217.05
7.2.10.0040.00816.94
7.2.00.0050.00917.92
7.1.330.0070.00715.86
7.1.320.0060.00315.84
7.1.310.0030.01016.11
7.1.300.0030.00615.82
7.1.290.0040.00815.72
7.1.280.0000.01816.02
7.1.270.0080.00816.00
7.1.260.0030.00515.90
7.1.250.0060.00815.90
7.1.240.0090.00615.97
7.1.230.0060.00615.96
7.1.220.0000.01115.63
7.1.210.0130.00315.93
7.1.200.0030.00915.78
7.1.190.0030.01015.72
7.1.180.0030.00916.04
7.1.170.0070.01015.71
7.1.160.0040.00716.01
7.1.150.0000.01115.94
7.1.140.0030.01015.77
7.1.130.0100.00015.94
7.1.120.0070.01015.86
7.1.110.0110.00316.05
7.1.100.0070.00717.00
7.1.90.0030.00615.89
7.1.80.0030.01015.93
7.1.70.0060.01016.26
7.1.60.0060.01117.70
7.1.50.0090.00816.53
7.1.40.0040.00415.97
7.1.30.0000.01016.05
7.1.20.0100.00015.70
7.1.10.0100.00715.82
7.1.00.0030.04319.08
7.0.330.0040.00915.59
7.0.320.0100.00315.68
7.0.310.0030.01315.63
7.0.300.0030.01315.54
7.0.290.0000.01015.56
7.0.280.0040.01115.36
7.0.270.0040.00815.32
7.0.260.0060.00715.37
7.0.250.0090.00615.33
7.0.240.0100.00315.10
7.0.230.0070.00715.49
7.0.220.0070.00715.47
7.0.210.0030.00615.50
7.0.200.0040.00616.21
7.0.190.0060.01015.69
7.0.180.0070.00415.30
7.0.170.0100.00015.48
7.0.160.0130.00315.67
7.0.150.0000.01515.41
7.0.140.0080.00815.32
7.0.130.0100.00315.60
7.0.120.0000.01015.38
7.0.110.0110.00015.50
7.0.100.0050.00515.68
7.0.90.0120.00315.46
7.0.80.0040.01115.46
7.0.70.0050.00515.32
7.0.60.0050.03717.78
7.0.50.0060.02616.78
7.0.40.0080.03716.65
7.0.30.0250.03316.82
7.0.20.0170.03016.95
7.0.10.0150.03016.80
7.0.00.0040.04216.92
5.6.400.0130.00314.64
5.6.390.0060.00914.73
5.6.380.0080.00414.01
5.6.370.0040.01214.31
5.6.360.0060.01014.30
5.6.350.0060.00614.42
5.6.340.0040.01113.93
5.6.330.0030.00714.27
5.6.320.0070.00714.29
5.6.310.0070.00714.52
5.6.300.0060.00914.75
5.6.290.0030.00714.59
5.6.280.0020.02017.73
5.6.270.0060.00614.37
5.6.260.0030.00714.13
5.6.250.0070.00714.36
5.6.240.0040.00814.45
5.6.230.0040.00814.25
5.6.220.0000.01314.49
5.6.210.0060.04317.47
5.6.200.0090.03116.20
5.6.190.0070.04117.48
5.6.180.0090.03517.32
5.6.170.0180.04517.53
5.6.160.0060.04117.45
5.6.150.0090.02716.25
5.6.140.0080.02316.33
5.6.130.0070.03516.23
5.6.120.0070.04017.69
5.6.110.0140.04617.69
5.6.100.0080.04517.66
5.6.90.0130.03617.57
5.6.80.0050.04717.51
5.6.70.2070.01717.45
5.6.60.0120.00314.39
5.6.50.0060.00614.39
5.6.40.0040.00814.12
5.6.30.0000.00914.54
5.6.20.0030.01014.01
5.6.10.0000.01213.95
5.6.00.0000.01414.28
5.5.380.0060.00614.29
5.5.370.0080.00814.08
5.5.360.0090.00614.50
5.5.350.0020.04917.38
5.5.340.0070.03916.12
5.5.330.0090.03917.34
5.5.320.0050.04617.25
5.5.310.0170.04517.12
5.5.300.0060.02516.09
5.5.290.0020.04616.12
5.5.280.0040.02617.46
5.5.270.0050.04017.48
5.5.260.0050.04317.48
5.5.250.0070.04017.38
5.5.240.0070.03217.30
5.5.230.0070.00714.05
5.5.220.0000.01414.05
5.5.210.0030.00614.46
5.5.200.0000.01713.98
5.5.190.0090.00613.85
5.5.180.0000.00914.22
5.5.170.0030.01013.99
5.5.160.0080.00614.20
5.5.150.0030.00614.26
5.5.140.0040.00814.04
5.5.130.0060.00614.31
5.5.120.0000.01613.93
5.5.110.0070.00713.81
5.5.100.0060.00614.25
5.5.90.0100.00714.02
5.5.80.0040.00714.35
5.5.70.0050.00813.95
5.5.60.0120.00314.09
5.5.50.0000.01614.29
5.5.40.0040.00414.02
5.5.30.0090.00314.02
5.5.20.0060.00914.48
5.5.10.0000.01314.36
5.5.00.0060.00614.02
5.4.450.0350.04015.21
5.4.440.0450.03015.09
5.4.430.0410.02915.31
5.4.420.0450.02315.35
5.4.410.0430.03315.23
5.4.400.0430.02714.85
5.4.390.0470.02715.02
5.4.380.0380.02815.15
5.4.370.0360.03315.00
5.4.360.0320.03715.06
5.4.350.0370.03015.23
5.4.340.0430.02515.24
5.4.330.0030.00311.13
5.4.320.0410.03115.10
5.4.310.0490.03515.14
5.4.300.0430.03015.28
5.4.290.0380.03014.99
5.4.280.0350.03214.94
5.4.270.0390.03015.09
5.4.260.0450.02315.27
5.4.250.0570.02714.96
5.4.240.0410.02614.93
5.4.230.0430.02915.12
5.4.220.0420.03915.10
5.4.210.0410.03115.05
5.4.200.0400.03215.17
5.4.190.0410.02815.26
5.4.180.0570.03015.04
5.4.170.0450.03014.86
5.4.160.0430.03015.13
5.4.150.0400.03015.20
5.4.140.0360.03113.79
5.4.130.0370.02713.86
5.4.120.0400.02813.71
5.4.110.0380.03013.62
5.4.100.0460.02113.91
5.4.90.0480.02213.50
5.4.80.0370.03013.69
5.4.70.0400.02513.67
5.4.60.0400.02713.88
5.4.50.0400.02813.66
5.4.40.0400.02713.79
5.4.30.0390.02713.81
5.4.20.0330.03513.55
5.4.10.0440.02713.79
5.4.00.0440.02713.46

preferences:
49.03 ms | 400 KiB | 5 Q