3v4l.org

run code in 300+ PHP versions simultaneously
<?php // create a string $string = '7999'; // look for a match echo preg_match("/8[0-9]{1}[0-9]{1}/", $string, $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.00718.30
8.3.50.0120.00921.02
8.3.40.0070.00718.92
8.3.30.0080.00620.29
8.3.20.0070.00020.29
8.3.10.0050.00322.02
8.3.00.0080.00022.44
8.2.180.0040.01118.13
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.54
8.2.110.0000.00922.10
8.2.100.0030.00819.19
8.2.90.0040.00419.05
8.2.80.0050.00319.26
8.2.70.0000.00917.75
8.2.60.0000.00917.90
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0000.00718.01
8.2.20.0090.00017.79
8.2.10.0000.00717.77
8.2.00.0060.00317.70
8.1.280.0120.00925.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.96
8.1.230.0040.00818.98
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0040.00417.43
8.1.180.0040.00419.01
8.1.170.0040.00418.71
8.1.160.0000.00722.15
8.1.150.0000.00718.70
8.1.140.0000.00717.53
8.1.130.0000.00717.88
8.1.120.0000.00817.43
8.1.110.0030.00617.43
8.1.100.0030.00617.55
8.1.90.0000.00817.63
8.1.80.0040.00317.57
8.1.70.0000.00717.50
8.1.60.0000.00817.66
8.1.50.0040.00417.63
8.1.40.0050.00317.51
8.1.30.0000.00817.71
8.1.20.0080.00017.64
8.1.10.0000.00917.56
8.1.00.0040.00417.60
8.0.300.0040.00418.77
8.0.290.0030.00317.18
8.0.280.0030.00318.45
8.0.270.0030.00317.39
8.0.260.0030.00317.00
8.0.250.0070.00017.00
8.0.240.0000.00817.02
8.0.230.0030.00317.04
8.0.220.0030.00316.85
8.0.210.0000.00816.91
8.0.200.0000.00717.04
8.0.190.0040.00416.96
8.0.180.0000.00716.88
8.0.170.0060.00316.89
8.0.160.0000.00716.95
8.0.150.0030.00316.94
8.0.140.0040.00416.88
8.0.130.0000.00613.39
8.0.120.0040.00416.93
8.0.110.0080.00016.98
8.0.100.0070.00016.92
8.0.90.0040.00416.83
8.0.80.0120.00616.95
8.0.70.0030.00516.97
8.0.60.0040.00416.89
8.0.50.0090.00016.80
8.0.30.0120.00817.22
8.0.20.0090.00917.40
8.0.10.0040.00416.96
8.0.00.0120.01016.93
7.4.330.0000.00515.07
7.4.320.0080.00016.71
7.4.300.0000.00716.59
7.4.290.0000.00716.62
7.4.280.0000.00716.73
7.4.270.0000.00616.63
7.4.260.0000.00716.70
7.4.250.0000.00816.65
7.4.240.0060.00116.71
7.4.230.0070.00016.63
7.4.220.0060.00916.66
7.4.210.0080.00616.72
7.4.200.0080.00016.80
7.4.190.0000.00716.89
7.4.160.0040.01116.72
7.4.150.0110.00817.40
7.4.140.0110.00617.86
7.4.130.0150.00216.65
7.4.120.0130.00616.64
7.4.110.0070.01016.59
7.4.100.0040.01516.62
7.4.90.0030.01516.54
7.4.80.0100.00719.39
7.4.70.0070.01016.59
7.4.60.0150.00416.46
7.4.50.0000.00516.70
7.4.40.0030.01322.77
7.4.30.0090.00916.59
7.4.00.0060.00915.14
7.3.330.0000.00513.14
7.3.320.0020.00213.11
7.3.310.0040.00316.31
7.3.300.0030.00316.13
7.3.290.0060.00916.30
7.3.280.0060.00816.29
7.3.270.0080.00917.40
7.3.260.0030.01316.26
7.3.250.0080.01116.26
7.3.240.0060.01216.63
7.3.230.0070.01016.47
7.3.210.0060.01216.30
7.3.200.0120.00919.39
7.3.190.0090.01316.55
7.3.180.0120.00916.19
7.3.170.0040.01816.29
7.3.160.0100.00716.48
7.3.120.0070.00715.01
7.3.10.0140.00316.25
7.3.00.0040.00816.22
7.2.330.0090.00916.66
7.2.320.0130.00816.54
7.2.310.0140.00416.72
7.2.300.0100.00716.46
7.2.290.0110.00616.73
7.2.130.0060.00816.93
7.2.120.0120.00617.02
7.2.110.0090.00616.77
7.2.100.0030.01216.64
7.2.90.0070.00317.19
7.2.80.0060.00916.91
7.2.70.0120.00016.91
7.2.60.0150.00016.99
7.2.50.0040.00817.09
7.2.40.0060.00317.08
7.2.30.0040.00416.98
7.2.20.0050.00516.85
7.2.10.0000.01216.97
7.2.00.0070.00318.38
7.1.250.0070.00415.87
7.1.100.0040.01118.19
7.1.70.0030.00317.18
7.1.60.0070.01719.43
7.1.50.0110.00717.21
7.1.00.0000.04022.38
7.0.200.1190.00314.58
7.0.140.0000.07722.02
7.0.60.0130.06719.86
7.0.50.0030.04017.91
7.0.40.0000.05020.06
7.0.30.0370.06020.11
7.0.20.0300.04720.01
7.0.10.0270.04720.20
7.0.00.0030.04320.04
5.6.280.0000.07720.90
5.6.210.0100.08320.60
5.6.200.0000.04318.13
5.6.190.0030.04720.55
5.6.180.0230.07320.56
5.6.170.0400.05720.51
5.6.160.0100.05720.50
5.6.150.0100.06718.14
5.6.140.0070.04718.12
5.6.130.0030.07318.12
5.6.120.0100.08321.11
5.6.110.0030.04320.98
5.6.100.0070.08320.95
5.6.90.0000.09021.12
5.6.80.0100.07320.39
5.6.70.0330.06320.44
5.5.350.0000.08020.45
5.5.340.0230.06317.91
5.5.330.0100.08020.29
5.5.320.0270.07720.13
5.5.310.0300.07720.33
5.5.300.0000.04317.92
5.5.290.0100.07318.02
5.5.280.0000.04320.88
5.5.270.0070.05020.85
5.5.260.0030.06020.88
5.5.250.0100.08020.45
5.5.240.0030.05320.21
5.4.450.0770.05719.41
5.4.440.0830.05319.11
5.4.430.1130.04719.44
5.4.420.0870.06019.10
5.4.410.1030.06019.00
5.4.400.0330.05018.53
5.4.390.0270.08018.46
5.4.380.0270.05318.72
5.4.370.0200.04718.68
5.4.360.0200.04318.48
5.4.350.0110.04811.97
5.4.340.0080.04511.96
5.4.320.0060.03812.45
5.4.310.0050.03912.45
5.4.300.0040.03712.45
5.4.290.0040.03912.45
5.4.280.0070.03412.34
5.4.270.0120.04712.35
5.4.260.0080.04412.35
5.4.250.0100.06318.89
5.4.240.0030.07718.72
5.4.230.0030.05718.79
5.4.220.0070.06018.93
5.4.210.0070.05018.87
5.4.200.0100.05019.03
5.4.190.0070.05718.89
5.4.180.0030.05318.87
5.4.170.0170.04318.93
5.4.160.0130.04718.78
5.4.150.0230.04719.02
5.4.140.0100.05016.50
5.4.130.0100.04716.45
5.4.120.0030.05316.40
5.4.110.0170.05016.49
5.4.100.0030.05716.23
5.4.90.0070.05016.35
5.4.80.0170.04316.40
5.4.70.0030.05016.24
5.4.60.0100.05016.31
5.4.50.0100.04716.32
5.4.40.0130.04316.43
5.4.30.0070.05716.30
5.4.20.0130.05016.31
5.4.10.0130.05716.46
5.4.00.0130.07715.75
5.3.290.0110.05012.80
5.3.280.0030.05314.46
5.3.270.0100.07314.61
5.3.260.0000.06014.59
5.3.250.0070.05014.61
5.3.240.0030.05314.44
5.3.230.0130.04314.46
5.3.220.0070.05014.26
5.3.210.0130.04714.65
5.3.200.0100.04714.33
5.3.190.0030.06014.43
5.3.180.0070.05314.25
5.3.170.0100.04714.41
5.3.160.0270.03014.33
5.3.150.0070.05014.55
5.3.140.0100.07014.59
5.3.130.0100.05014.54
5.3.120.0100.05314.43
5.3.110.0100.05314.56
5.3.100.0100.04314.07
5.3.90.0100.04313.71
5.3.80.0100.05013.80
5.3.70.0100.04714.04
5.3.60.0130.04013.83
5.3.50.0070.04714.09
5.3.40.0070.05314.09
5.3.30.0130.04014.05
5.3.20.0130.06313.53
5.3.10.0200.04713.53
5.3.00.0070.05713.51
5.2.170.0030.04010.91
5.2.160.0100.04711.15
5.2.150.0070.04011.29
5.2.140.0070.05711.13
5.2.130.0030.04011.12
5.2.120.0070.04310.86
5.2.110.0130.03311.11
5.2.100.0070.06011.24
5.2.90.0030.04011.11
5.2.80.0170.03311.02
5.2.70.0070.04011.00
5.2.60.0070.04011.20
5.2.50.0070.05011.04
5.2.40.0070.03711.01
5.2.30.0030.04010.98
5.2.20.0000.04010.89
5.2.10.0070.03710.92
5.2.00.0100.03710.81
5.1.60.0130.02310.07
5.1.50.0070.03710.03
5.1.40.0030.0339.80
5.1.30.0030.03710.29
5.1.20.0130.03310.17
5.1.10.0030.03710.03
5.1.00.0030.03310.12
5.0.50.0070.0378.59
5.0.40.0000.0308.34
5.0.30.0030.0408.21
5.0.20.0030.0278.18
5.0.10.0100.0208.25
5.0.00.0030.0408.24
4.4.90.0070.0237.24
4.4.80.0070.0177.24
4.4.70.0070.0177.24
4.4.60.0030.0237.24
4.4.50.0030.0207.25
4.4.40.0070.0307.25
4.4.30.0000.0237.25
4.4.20.0030.0207.25
4.4.10.0000.0237.25
4.4.00.0030.0307.25
4.3.110.0030.0207.25
4.3.100.0030.0207.25
4.3.90.0000.0237.25
4.3.80.0000.0337.25
4.3.70.0000.0207.25
4.3.60.0000.0277.25
4.3.50.0030.0207.25
4.3.40.0030.0337.25
4.3.30.0070.0237.25
4.3.20.0000.0237.25
4.3.10.0030.0207.25
4.3.00.0070.0237.62

preferences:
41.33 ms | 401 KiB | 5 Q