3v4l.org

run code in 300+ PHP versions simultaneously
<?php print preg_match('/(.*).(.*)$/', 'weweasdweweasdasd.jpg', $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.70.0060.01316.63
8.3.60.0070.00716.75
8.3.50.0110.00922.82
8.3.40.0070.00718.80
8.3.30.0070.00719.08
8.3.20.0000.00820.21
8.3.10.0000.00823.54
8.3.00.0040.00419.26
8.2.180.0140.00416.38
8.2.170.0110.00422.96
8.2.160.0100.00620.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.28
8.2.110.0070.00322.07
8.2.100.0070.00417.91
8.2.90.0060.00318.97
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0000.01017.79
8.2.50.0000.00918.07
8.2.40.0070.00018.16
8.2.30.0040.00418.02
8.2.20.0080.00017.77
8.2.10.0040.00418.01
8.2.00.0040.00417.64
8.1.280.0130.00725.92
8.1.270.0030.00523.79
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00023.71
8.1.230.0110.00019.16
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00917.23
8.1.180.0000.00918.10
8.1.170.0040.00418.61
8.1.160.0020.00521.96
8.1.150.0040.00418.75
8.1.140.0000.00817.51
8.1.130.0070.00017.89
8.1.120.0070.00017.51
8.1.110.0000.00717.42
8.1.100.0000.00717.44
8.1.90.0030.00417.38
8.1.80.0040.00417.38
8.1.70.0030.00317.39
8.1.60.0030.00717.61
8.1.50.0040.00417.43
8.1.40.0030.00617.46
8.1.30.0000.00817.57
8.1.20.0000.00717.57
8.1.10.0040.00417.59
8.1.00.0050.00317.45
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.26
8.0.270.0000.00717.21
8.0.260.0030.00317.12
8.0.250.0000.00716.92
8.0.240.0030.00616.92
8.0.230.0040.00416.98
8.0.220.0030.00316.88
8.0.210.0030.00316.79
8.0.200.0070.00016.98
8.0.190.0000.00716.97
8.0.180.0040.00416.91
8.0.170.0030.00516.96
8.0.160.0080.00317.00
8.0.150.0050.00316.87
8.0.140.0000.00716.84
8.0.130.0000.00513.30
8.0.120.0040.00416.88
8.0.110.0050.00316.83
8.0.100.0000.00716.80
8.0.90.0040.00416.82
8.0.80.0030.01516.89
8.0.70.0060.00316.70
8.0.60.0040.00416.78
8.0.50.0000.00816.93
8.0.30.0110.01317.20
8.0.20.0100.00917.40
8.0.10.0020.00517.04
8.0.00.0110.00616.70
7.4.330.0030.00315.00
7.4.320.0000.00616.72
7.4.300.0000.00616.63
7.4.290.0030.00316.68
7.4.280.0050.00316.56
7.4.270.0030.00316.51
7.4.260.0070.00016.64
7.4.250.0060.00316.44
7.4.240.0000.00716.65
7.4.230.0040.00416.58
7.4.220.0070.01716.68
7.4.210.0090.01116.75
7.4.200.0000.00716.65
7.4.160.0090.00616.62
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0090.00816.57
7.4.120.0100.00816.64
7.4.110.0070.01016.57
7.4.100.0100.00616.72
7.4.90.0040.01316.71
7.4.80.0100.00719.39
7.4.70.0130.01016.68
7.4.60.0140.00316.75
7.4.50.0000.00816.53
7.4.40.0030.01516.54
7.4.30.0170.00616.61
7.4.00.0070.01115.11
7.3.330.0030.00313.23
7.3.320.0050.00013.11
7.3.310.0070.00016.14
7.3.300.0070.00016.36
7.3.290.0060.00916.24
7.3.280.0100.00716.28
7.3.270.0120.00617.40
7.3.260.0080.01216.22
7.3.250.0160.00516.35
7.3.240.0130.00616.23
7.3.230.0000.02116.44
7.3.210.0080.00816.40
7.3.200.0000.01719.39
7.3.190.0090.00616.56
7.3.180.0030.01316.52
7.3.170.0130.01016.36
7.3.160.0110.00516.38
7.3.10.0210.00816.09
7.3.00.0160.00516.20
7.2.330.0140.01316.55
7.2.320.0060.01616.52
7.2.310.0090.00916.64
7.2.300.0100.01016.72
7.2.290.0080.00816.61
7.2.130.0150.01216.45
7.2.120.0200.00616.63
7.2.110.0130.00916.51
7.2.100.0110.01116.47
7.2.90.0270.00416.68
7.2.80.0160.00816.68
7.2.70.0250.00816.63
7.2.60.0180.00516.53
7.2.50.0150.01116.74
7.2.40.0150.00717.02
7.2.30.0170.00616.45
7.2.20.0210.01316.52
7.2.10.0170.01116.43
7.2.00.0120.00817.55
7.1.250.0150.00315.59
7.1.100.0030.01218.36
7.1.70.0080.00317.39
7.1.60.0100.01019.40
7.1.50.0160.01017.01
7.1.00.0100.07022.59
7.0.200.0060.00616.81
7.0.140.0000.07722.18
7.0.60.0170.07019.89
7.0.50.0030.06017.89
7.0.40.0000.05720.17
7.0.30.0300.04720.10
7.0.20.0130.04720.09
7.0.10.0070.04020.27
7.0.00.0100.06320.07
5.6.280.0000.07320.77
5.6.210.0200.06320.61
5.6.200.0030.04018.27
5.6.190.0030.06720.67
5.6.180.0170.04720.64
5.6.170.0300.07020.52
5.6.160.0070.04020.46
5.6.150.0100.07718.15
5.6.140.0130.03018.24
5.6.130.0100.04718.16
5.6.120.0030.09021.11
5.6.110.0070.08320.95
5.6.100.0070.05021.10
5.6.90.0130.06020.96
5.6.80.0200.07020.38
5.5.350.3800.03720.42
5.5.340.0030.08717.91
5.5.330.0100.04720.21
5.5.320.0370.07320.34
5.5.310.0270.08320.24
5.5.300.0030.03717.94
5.5.290.0070.04718.04
5.5.280.0000.08720.69
5.5.270.0000.06020.78
5.5.260.0130.07720.79
5.5.250.0130.04320.68
5.5.240.0230.06020.06
5.4.450.0330.04719.57
5.4.440.0330.03719.58
5.4.430.0830.04719.27
5.4.420.0670.03319.56
5.4.410.0200.05019.42
5.4.400.0470.04018.88
5.4.390.0430.04018.98
5.4.380.0330.06318.80
5.4.370.0300.05018.77
5.4.360.0300.05018.84
5.4.350.0330.07718.61
5.4.340.0500.04318.77
5.4.320.0070.03512.48
5.4.310.0040.03912.47
5.4.300.0060.03612.48
5.4.290.0080.04112.48
5.4.280.0090.03412.37
5.4.270.0030.04012.38
5.4.260.0110.03212.37
5.4.250.0060.03912.37
5.4.240.0070.03712.37
5.4.230.0080.04512.36
5.4.220.0100.04412.36
5.4.210.0060.03612.37
5.4.200.0050.04112.37
5.4.190.0040.04212.36
5.4.180.0040.03712.36
5.4.170.0050.03612.37
5.4.160.0060.03512.37
5.4.150.0050.03612.36
5.4.140.0080.03512.05
5.4.130.0060.03612.04
5.4.120.0040.03612.00
5.4.110.0030.03811.99
5.4.100.0100.03011.99
5.4.90.0040.03911.99
5.4.80.0050.03911.99
5.4.70.0050.03611.98
5.4.60.0060.03511.99
5.4.50.0090.03211.98
5.4.40.0060.03511.97
5.4.30.0060.03511.98
5.4.20.0040.03711.98
5.4.10.0060.03411.97
5.4.00.0050.03711.46
5.3.290.0080.04112.80
5.3.280.0040.03912.71
5.3.270.0060.03912.73
5.3.260.0080.03712.72
5.3.250.0080.03512.72
5.3.240.0050.03812.71
5.3.230.0090.03512.71
5.3.220.0050.03812.68
5.3.210.0040.04112.68
5.3.200.0100.03312.68
5.3.190.0090.03512.68
5.3.180.0100.03312.67
5.3.170.0100.03412.67
5.3.160.0090.04412.67
5.3.150.0080.03612.67
5.3.140.0060.03712.66
5.3.130.0080.03812.66
5.3.120.0040.04012.66
5.3.110.0140.03512.66
5.3.100.0100.03912.12
5.3.90.0040.03812.10
5.3.80.0050.03712.09
5.3.70.0080.03412.09
5.3.60.0060.03712.07
5.3.50.0040.03912.02
5.3.40.0040.03812.02
5.3.30.0050.03611.98
5.3.20.0070.03411.76
5.3.10.0070.03311.74
5.3.00.0030.03811.71
5.2.170.0070.0289.22
5.2.160.0050.0309.22
5.2.150.0070.0439.21
5.2.140.0040.0359.21
5.2.130.0050.0299.18
5.2.120.0060.0279.18
5.2.110.0040.0299.18
5.2.100.0030.0299.18
5.2.90.0050.0289.18
5.2.80.0030.0319.17
5.2.70.0090.0259.17
5.2.60.0050.0289.12
5.2.50.0040.0299.09
5.2.40.0050.0289.07
5.2.30.0060.0289.05
5.2.20.0050.0289.04
5.2.10.0060.0268.93
5.2.00.0050.0288.79
5.1.60.0070.0218.07
5.1.50.0050.0268.07
5.1.40.0050.0298.06
5.1.30.0040.0268.40
5.1.20.0060.0278.43
5.1.10.0030.0268.15
5.1.00.0030.0298.15
5.0.50.0050.0196.63
5.0.40.0040.0186.48
5.0.30.0030.0316.30
5.0.20.0050.0186.27
5.0.10.0030.0206.24
5.0.00.0040.0306.23
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0020.0164.76
4.4.60.0040.0154.76
4.4.50.0010.0174.77
4.4.40.0030.0244.71
4.4.30.0010.0174.75
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0020.0254.75
4.3.110.0010.0174.67
4.3.100.0030.0154.66
4.3.90.0010.0164.63
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0050.0284.54
4.3.30.0030.0203.29
4.3.20.0020.0173.27
4.3.10.0030.0153.23
4.3.00.0130.01315.95

preferences:
62.14 ms | 401 KiB | 5 Q