3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = <<<EOL 1. first 2. second 3. third EOL; preg_match('/^.{1,20}?$/i', $subject, $matches); var_dump($matches); $subject = "qasd\nasdasd\nasda"; preg_match('/^.{1,20}?$/gim', $subject, $matches); 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.0110.01118.63
8.3.50.0130.00722.05
8.3.40.0070.00718.79
8.3.30.0140.00018.84
8.3.20.0080.00018.79
8.3.10.0040.00420.88
8.3.00.0080.00023.53
8.2.180.0060.00916.75
8.2.170.0110.00422.96
8.2.160.0040.01120.35
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00619.54
8.2.110.0030.00620.48
8.2.100.0090.00318.03
8.2.90.0060.00319.18
8.2.80.0040.00417.97
8.2.70.0030.00517.75
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0060.00318.22
8.2.30.0040.00419.51
8.2.20.0050.00217.61
8.2.10.0000.00817.77
8.2.00.0090.00017.76
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.48
8.1.230.0070.00320.96
8.1.220.0000.00918.77
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0000.00717.41
8.1.180.0090.00018.10
8.1.170.0040.00418.63
8.1.160.0000.00818.75
8.1.150.0040.00418.60
8.1.140.0040.00417.44
8.1.130.0050.00317.89
8.1.120.0070.00317.55
8.1.110.0030.00517.50
8.1.100.0000.00817.49
8.1.90.0000.00717.56
8.1.80.0030.00517.51
8.1.70.0000.00717.48
8.1.60.0040.00417.52
8.1.50.0040.00417.61
8.1.40.0000.00817.64
8.1.30.0070.00017.73
8.1.20.0040.00417.77
8.1.10.0000.00717.64
8.1.00.0000.00717.57
8.0.300.0040.00419.93
8.0.290.0070.00017.16
8.0.280.0030.00318.44
8.0.270.0000.00717.18
8.0.260.0070.00017.07
8.0.250.0040.00416.97
8.0.240.0030.00717.02
8.0.230.0040.00417.05
8.0.220.0030.00316.91
8.0.210.0000.00817.00
8.0.200.0060.00017.02
8.0.190.0040.00417.07
8.0.180.0000.00717.06
8.0.170.0000.00716.99
8.0.160.0000.00717.11
8.0.150.0040.00416.94
8.0.140.0040.00416.99
8.0.130.0060.00013.47
8.0.120.0000.00716.98
8.0.110.0040.00416.89
8.0.100.0030.00517.09
8.0.90.0080.00017.07
8.0.80.0150.00617.04
8.0.70.0070.00016.84
8.0.60.0040.00417.03
8.0.50.0050.00317.07
8.0.30.0110.00717.32
8.0.20.0110.00617.43
8.0.10.0070.00017.20
8.0.00.0140.00816.87
7.4.330.0060.00014.89
7.4.320.0030.00316.55
7.4.300.0000.00616.72
7.4.290.0030.00316.73
7.4.280.0000.00716.49
7.4.270.0000.00816.71
7.4.260.0000.00513.44
7.4.250.0050.00216.72
7.4.240.0040.00416.58
7.4.230.0040.00416.55
7.4.220.0130.01316.64
7.4.210.0090.00616.76
7.4.200.0070.00016.77
7.4.190.0000.00716.80
7.4.160.0100.00716.63
7.4.150.0130.00717.40
7.4.140.0130.00917.86
7.4.130.0090.00816.79
7.4.120.0070.01016.70
7.4.110.0000.01616.68
7.4.100.0090.00916.59
7.4.90.0130.01316.60
7.4.80.0100.00719.39
7.4.70.0140.00316.70
7.4.60.0170.00316.57
7.4.50.0030.00616.49
7.4.40.0100.00722.52
7.4.30.0080.00816.75
7.4.00.0040.01115.05
7.3.330.0000.00513.18
7.3.320.0060.00013.17
7.3.310.0070.00016.41
7.3.300.0050.00316.38
7.3.290.0070.00716.27
7.3.280.0130.00716.38
7.3.270.0080.00817.40
7.3.260.0140.00718.24
7.3.250.0080.01016.45
7.3.240.0120.00416.70
7.3.230.0110.01116.63
7.3.210.0060.01016.56
7.3.200.0070.01019.39
7.3.190.0120.00916.59
7.3.180.0100.00716.22
7.3.170.0130.00916.53
7.3.160.0070.00716.55
7.3.120.0070.00714.87
7.2.330.0130.00416.64
7.2.320.0150.00616.58
7.2.310.0160.00316.56
7.2.300.0080.00816.51
7.2.290.0070.01016.43
7.2.60.0070.00316.56
7.2.00.0040.00719.35
7.1.200.0000.00715.69
7.1.100.0120.00318.45
7.1.70.0060.00916.99
7.1.60.0090.01219.40
7.1.50.0100.01416.87
7.1.00.0100.06722.41
7.0.200.0030.01016.77
7.0.140.0000.07022.15
7.0.60.0000.04320.06
7.0.50.0130.08017.89
7.0.40.0070.08317.77
7.0.30.0130.08017.74
7.0.20.0100.08317.80
7.0.10.0070.06317.79
7.0.00.0070.04317.73
5.6.280.0070.07021.11
5.6.210.0030.08720.60
5.6.200.0070.06718.23
5.6.190.0030.07018.22
5.6.180.0100.06718.13
5.6.170.0070.08718.18
5.6.160.0100.07018.09
5.6.150.0030.06718.18
5.6.140.0200.06718.20
5.6.130.0130.07318.27
5.6.120.0100.08718.18
5.6.110.0030.04318.21
5.6.100.0070.04018.16
5.6.90.0030.04018.22
5.6.80.0100.03317.57
5.6.70.0030.03717.56
5.6.60.0030.05317.52
5.6.50.0000.04017.51
5.6.40.0030.03717.54
5.6.30.0000.04017.55
5.6.20.0100.03317.46
5.6.10.0030.03717.46
5.6.00.0000.04017.46
5.5.350.0200.07720.43
5.5.340.0070.08317.96
5.5.330.0130.05717.99
5.5.320.0030.08718.04
5.5.310.0170.06717.95
5.5.300.0070.08017.94
5.5.290.0100.07318.02
5.5.280.0070.08017.92
5.5.270.0000.04317.96
5.5.260.0030.04017.90
5.5.250.0030.04017.84
5.5.240.0030.04017.33
5.5.230.0030.03717.33
5.5.220.0030.03717.29
5.5.210.0000.04017.33
5.5.200.0000.04017.32
5.5.190.0070.03317.37
5.5.180.0000.04017.33
5.5.160.0070.03317.24
5.5.150.0000.04017.36
5.5.140.0000.04017.31
5.5.130.0070.03717.31
5.5.120.0030.03717.23
5.5.110.0070.03317.22
5.5.100.0030.03717.20
5.5.90.0000.03717.24
5.5.80.0030.03717.25
5.5.70.0070.03317.20
5.5.60.0000.03717.21
5.5.50.0000.07717.16
5.5.40.0170.06317.22
5.5.30.0070.07717.16
5.5.20.0100.07317.16
5.5.10.0100.04017.20
5.5.00.0100.06017.24
5.4.450.0130.07319.22
5.4.440.0070.05019.40
5.4.430.0000.04719.41
5.4.420.0070.03719.35
5.4.410.0000.04019.23
5.4.400.0070.03719.09
5.4.390.0070.03318.97
5.4.380.0100.03019.11
5.4.370.0070.03719.09
5.4.360.0000.04018.98
5.4.350.0070.03319.25
5.4.340.0030.03718.99
5.4.320.0070.03318.99
5.4.310.0030.03719.01
5.4.300.0070.03319.09
5.4.290.0030.03718.98
5.4.280.0030.03719.05
5.4.270.0030.03718.95
5.4.260.0000.04018.95
5.4.250.0000.04019.08
5.4.240.0100.03018.82
5.4.230.0000.04018.99
5.4.220.0070.03319.11
5.4.210.0030.05319.00
5.4.200.0070.05319.11
5.4.190.0030.05019.01
5.4.180.0030.07318.82
5.4.170.0070.05018.97
5.4.160.0030.06718.96
5.4.150.0070.04718.96
5.4.140.0000.05016.27
5.4.130.0000.07016.34
5.4.120.0030.07716.32
5.4.110.0100.07316.28
5.4.100.0000.07716.36
5.4.90.0100.06016.53
5.4.80.0030.07316.21
5.4.70.0030.04316.26
5.4.60.0070.03316.31
5.4.50.0070.05316.31
5.4.40.0030.07316.26
5.4.30.0030.07716.22
5.4.20.0030.04016.31
5.4.10.0030.04716.22
5.4.00.0100.03715.70
5.3.290.0030.03714.76
5.3.280.0030.03714.68
5.3.270.0070.07714.45
5.3.260.0030.05014.54
5.3.250.0030.04014.61
5.3.240.0130.06714.55
5.3.230.0030.07714.52
5.3.220.0100.06314.54
5.3.210.0130.05714.43
5.3.200.0100.06714.54
5.3.190.0070.06314.39
5.3.180.0100.07014.50
5.3.170.0100.07714.41
5.3.160.0170.06714.39
5.3.150.0100.05014.42
5.3.140.0070.05014.49
5.3.130.0100.07714.48
5.3.120.0000.05714.50
5.3.110.0000.04314.50
5.3.100.0070.06014.00
5.3.90.0030.05313.93
5.3.80.0070.06313.77
5.3.70.0030.04313.93
5.3.60.0130.06313.77
5.3.50.0030.04313.91
5.3.40.0130.06013.91
5.3.30.0000.06713.98
5.3.20.0070.07013.66
5.3.10.0130.06013.41
5.3.00.0030.07013.62
5.2.170.0100.06011.00
5.2.160.0030.05711.04
5.2.150.0070.05311.13
5.2.140.0070.06310.92
5.2.130.0070.06310.95
5.2.120.0130.05711.13
5.2.110.0130.05011.08
5.2.100.0070.06011.05
5.2.90.0100.05311.06
5.2.80.0100.05710.91
5.2.70.0030.04310.87
5.2.60.0130.04710.99
5.2.50.0030.06711.05
5.2.40.0130.05011.14
5.2.30.0070.05010.93
5.2.20.0030.06010.91
5.2.10.0070.06010.89
5.2.00.0030.06310.73
5.1.60.0130.0379.96
5.1.50.0000.0509.97
5.1.40.0070.0509.95
5.1.30.0000.04010.17
5.1.20.0070.05710.38
5.1.10.0070.05010.07
5.1.00.0070.03710.09
5.0.50.0000.0479.23
5.0.40.0070.0239.23
5.0.30.0000.0539.23
5.0.20.0070.0439.23
5.0.10.0000.0409.23
5.0.00.0030.0509.23
4.4.90.0000.0209.23
4.4.80.0070.0179.23
4.4.70.0030.0279.23
4.4.60.0000.0409.23
4.4.50.0000.0379.23
4.4.40.0030.0539.23
4.4.30.0000.0239.23
4.4.20.0030.0279.23
4.4.10.0070.0309.23
4.4.00.0030.0539.23
4.3.110.0000.0379.23
4.3.100.0030.0379.23
4.3.90.0030.0339.23
4.3.80.0030.0539.23
4.3.70.0000.0279.23
4.3.60.0030.0339.23
4.3.50.0030.0239.23
4.3.40.0000.0609.23
4.3.30.0070.0239.23
4.3.20.0000.0379.23
4.3.10.0070.0339.23
4.3.00.0030.0179.23

preferences:
44.75 ms | 401 KiB | 5 Q