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}?$/im', $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.70.0100.00716.63
8.3.60.0000.01518.56
8.3.50.0090.00722.13
8.3.40.0140.00018.63
8.3.30.0070.00718.96
8.3.20.0040.00420.34
8.3.10.0090.00021.83
8.3.00.0040.00422.38
8.2.190.0090.00616.75
8.2.180.0150.00316.75
8.2.170.0150.00622.96
8.2.160.0110.00420.94
8.2.150.0090.00024.18
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.38
8.2.110.0030.00622.26
8.2.100.0080.00417.71
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0040.00418.21
8.2.30.0100.00018.03
8.2.20.0040.00417.74
8.2.10.0040.00417.75
8.2.00.0040.00417.85
8.1.280.0040.01125.92
8.1.270.0060.00323.80
8.1.260.0030.00526.35
8.1.250.0120.00628.09
8.1.240.0070.00323.84
8.1.230.0070.00419.15
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.01017.34
8.1.190.0040.00417.54
8.1.180.0000.00818.10
8.1.170.0050.00318.66
8.1.160.0100.00021.98
8.1.150.0060.00318.80
8.1.140.0080.00017.54
8.1.130.0030.00317.89
8.1.120.0000.00717.45
8.1.110.0000.00717.43
8.1.100.0040.00417.54
8.1.90.0080.00017.53
8.1.80.0000.00717.49
8.1.70.0000.00717.52
8.1.60.0050.00317.57
8.1.50.0040.00417.63
8.1.40.0000.00817.62
8.1.30.0030.00517.71
8.1.20.0000.00817.78
8.1.10.0040.00417.68
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0030.00318.39
8.0.270.0000.00817.09
8.0.260.0030.00316.96
8.0.250.0040.00417.09
8.0.240.0040.00417.13
8.0.230.0050.00217.06
8.0.220.0030.00317.02
8.0.210.0040.00416.97
8.0.200.0000.00717.06
8.0.190.0040.00417.06
8.0.180.0030.00517.04
8.0.170.0030.00716.96
8.0.160.0040.00417.01
8.0.150.0070.00016.99
8.0.140.0000.00716.89
8.0.130.0000.00713.43
8.0.120.0000.00716.95
8.0.110.0030.00316.86
8.0.100.0000.00717.09
8.0.90.0070.00016.97
8.0.80.0060.01016.97
8.0.70.0050.00216.86
8.0.60.0000.00716.90
8.0.50.0000.00816.99
8.0.30.0100.01017.03
8.0.20.0110.00717.40
8.0.10.0040.00417.18
8.0.00.0110.00816.73
7.4.330.0050.00015.00
7.4.320.0030.00316.59
7.4.300.0000.00716.50
7.4.290.0030.00316.80
7.4.280.0030.00316.65
7.4.270.0040.00416.79
7.4.260.0080.00016.73
7.4.250.0000.00716.70
7.4.240.0000.00816.72
7.4.230.0000.00716.69
7.4.220.0060.01216.75
7.4.210.0060.00916.72
7.4.200.0000.00716.79
7.4.190.0040.00416.56
7.4.160.0050.01116.84
7.4.150.0040.01317.40
7.4.140.0090.01217.86
7.4.130.0120.00716.71
7.4.120.0120.00516.61
7.4.110.0060.01216.79
7.4.100.0080.01216.50
7.4.90.0030.01316.55
7.4.80.0030.01516.49
7.4.70.0100.00616.76
7.4.60.0080.00816.59
7.4.50.0040.00416.54
7.4.40.0040.01222.77
7.4.30.0060.01016.52
7.4.00.0030.01014.87
7.3.330.0000.00513.11
7.3.320.0050.00013.13
7.3.310.0000.00716.50
7.3.300.0030.00316.40
7.3.290.0100.00316.31
7.3.280.0070.00816.38
7.3.270.0140.00317.40
7.3.260.0120.00616.37
7.3.250.0080.01016.34
7.3.240.0070.01116.45
7.3.230.0090.00916.39
7.3.210.0140.00716.34
7.3.200.0000.01819.39
7.3.190.0150.00316.51
7.3.180.0060.01216.81
7.3.170.0060.01216.40
7.3.160.0090.00916.44
7.3.120.0030.01314.84
7.3.10.0150.00416.38
7.3.00.0130.01016.25
7.2.330.0110.00816.62
7.2.320.0060.01216.80
7.2.310.0070.01016.62
7.2.300.0110.00616.60
7.2.290.0060.01016.50
7.2.130.0110.00716.24
7.2.120.0120.00616.33
7.2.110.0170.00716.31
7.2.100.0210.00316.15
7.2.90.0120.00616.97
7.2.80.0190.00116.54
7.2.70.0100.01016.63
7.2.60.0080.01316.39
7.2.50.0140.01016.49
7.2.40.0120.00616.55
7.2.30.0150.00816.59
7.2.20.0190.00016.33
7.2.10.0100.01016.25
7.2.00.0110.00717.99
7.1.250.0100.00315.51
7.1.100.0000.01118.38
7.1.70.0050.00517.22
7.1.60.0090.01519.82
7.1.50.0060.00616.66
7.1.00.0000.08022.32
7.0.200.0080.00416.62
7.0.140.0070.07021.99
7.0.60.0430.06719.99
7.0.50.0170.05717.86
7.0.40.0100.07720.00
7.0.30.0300.07320.02
7.0.20.0170.07720.05
7.0.10.0300.07720.05
7.0.00.0070.07320.19
5.6.280.0070.07020.92
5.6.210.0200.07020.54
5.6.200.0070.05318.15
5.6.190.0070.08320.37
5.6.180.3070.04020.77
5.6.170.0330.06320.71
5.6.160.0030.08320.46
5.6.150.0100.07718.09
5.6.140.0000.05018.18
5.6.130.0030.04018.12
5.6.120.0030.08721.04
5.6.110.0100.08321.04
5.6.100.0070.04321.00
5.6.90.0000.06721.11
5.6.80.0030.04020.43
5.5.350.0000.08020.46
5.5.340.0100.07717.97
5.5.330.0100.07720.29
5.5.320.0230.05320.29
5.5.310.0170.04320.20
5.5.300.0100.04717.94
5.5.290.0070.08717.91
5.5.280.0030.04320.84
5.5.270.0230.06720.60
5.5.260.0170.07020.88
5.5.250.0030.04020.68
5.5.240.0030.04320.07
5.4.450.0400.04319.39
5.4.440.0700.06319.45
5.4.430.0330.03019.42
5.4.420.0630.04019.40
5.4.410.0070.05718.92
5.4.400.0030.06018.73
5.4.390.0170.06318.77
5.4.380.0170.05718.46
5.4.370.0130.05718.54
5.4.360.0200.04318.50
5.4.350.0170.05018.63
5.4.340.0200.04318.65
5.4.320.0110.03412.45
5.4.310.0050.03912.45
5.4.300.0060.04012.45
5.4.290.0080.03512.45
5.4.280.0100.03012.35
5.4.270.0070.03512.34
5.4.260.0080.03612.34
5.4.250.0070.03512.34
5.4.240.0020.03912.35
5.4.230.0060.04812.34
5.4.220.0080.03512.34
5.4.210.0090.03612.34
5.4.200.0060.04912.34
5.4.190.0150.04512.33
5.4.180.0120.04512.33
5.4.170.0130.04512.35
5.4.160.0130.04712.34
5.4.150.0260.06312.34
5.4.140.0160.04312.02
5.4.130.0190.03912.01
5.4.120.0180.03811.96
5.4.110.0170.03911.96
5.4.100.0170.04111.96
5.4.90.0260.09111.96
5.4.80.0150.04211.96
5.4.70.0250.03411.96
5.4.60.0150.04111.95
5.4.50.0150.04111.96
5.4.40.0170.04211.95
5.4.30.0150.04211.95
5.4.20.0130.04411.95
5.4.10.0130.04311.95
5.4.00.0140.04211.43
5.3.290.0070.04312.80
5.3.280.0060.05512.71
5.3.270.0410.08112.72
5.3.260.0230.04012.72
5.3.250.0150.04412.72
5.3.240.0180.07112.72
5.3.230.0210.04312.71
5.3.220.0130.04812.68
5.3.210.0220.03912.68
5.3.200.0160.04412.68
5.3.190.0180.04312.67
5.3.180.0210.07012.67
5.3.170.0170.04312.67
5.3.160.0170.04412.67
5.3.150.0130.04612.68
5.3.140.0200.04112.66
5.3.130.0180.04312.66
5.3.120.0160.04312.66
5.3.110.0150.04612.66
5.3.100.0260.06512.12
5.3.90.0120.04512.09
5.3.80.0180.04112.07
5.3.70.0190.04112.08
5.3.60.0160.04312.07
5.3.50.0160.04312.00
5.3.40.0150.04412.00
5.3.30.0160.04311.96
5.3.20.0170.04011.73
5.3.10.0200.03611.69
5.3.00.0110.04511.70
5.2.170.0160.0309.18
5.2.160.0130.0369.18
5.2.150.0150.0379.18
5.2.140.0370.0759.18
5.2.130.0150.0379.14
5.2.120.0180.0339.15
5.2.110.0220.0609.15
5.2.100.0110.0389.14
5.2.90.0160.0349.14
5.2.80.0190.0649.13
5.2.70.0120.0369.13
5.2.60.0190.0329.09
5.2.50.0140.0359.05
5.2.40.0270.0559.04
5.2.30.0110.0389.01
5.2.20.0180.0369.01
5.2.10.0160.0338.92
5.2.00.0140.0358.78
5.1.60.0140.0318.07
5.1.50.0100.0338.06
5.1.40.0370.0788.05
5.1.30.0420.0698.39
5.1.20.0200.0308.42
5.1.10.0140.0378.14
5.1.00.0100.0338.14
5.0.50.0190.0456.62
5.0.40.0070.0256.47
5.0.30.0070.0376.30
5.0.20.0130.0206.27
5.0.10.0060.0276.25
5.0.00.0130.0316.23
4.4.90.0070.0184.78
4.4.80.0170.0384.76
4.4.70.0050.0224.75
4.4.60.0080.0194.75
4.4.50.0100.0154.77
4.4.40.0100.0294.71
4.4.30.0080.0194.75
4.4.20.0210.0694.85
4.4.10.0040.0224.85
4.4.00.0070.0304.76
4.3.110.0070.0194.67
4.3.100.0060.0194.67
4.3.90.0080.0164.63
4.3.80.0100.0254.58
4.3.70.0030.0224.63
4.3.60.0080.0174.63
4.3.50.0080.0194.63
4.3.40.0080.0274.54
4.3.30.0040.0203.28
4.3.20.0070.0203.27
4.3.10.0070.0183.24
4.3.00.0000.01713.29

preferences:
39.33 ms | 401 KiB | 5 Q