3v4l.org

run code in 300+ PHP versions simultaneously
<?php check_input_data('wello', 'int'); function check_input_data($data, $type) { if (preg_match('/^[0-9]{1,10}$/D', $data) && $data < 2147483647) return true; }

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.0070.00716.75
8.3.50.0090.00922.94
8.3.40.0110.00318.79
8.3.30.0100.00318.93
8.3.20.0040.00420.21
8.3.10.0030.00523.69
8.3.00.0040.00419.50
8.2.180.0120.00616.38
8.2.170.0120.00322.96
8.2.160.0080.00620.27
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0000.00720.98
8.2.110.0000.00920.53
8.2.100.0070.00418.09
8.2.90.0000.00719.14
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0050.00318.07
8.2.40.0040.00418.09
8.2.30.0040.00418.00
8.2.20.0040.00417.64
8.2.10.0000.00717.99
8.2.00.0000.00717.63
8.1.280.0180.00725.92
8.1.270.0130.00323.95
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0060.00619.15
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00918.83
8.1.160.0080.00021.95
8.1.150.0040.00418.85
8.1.140.0000.00717.40
8.1.130.0000.00717.66
8.1.120.0000.00717.43
8.1.110.0040.00417.46
8.1.100.0050.00217.43
8.1.90.0070.00017.44
8.1.80.0020.00517.58
8.1.70.0000.00717.50
8.1.60.0000.00817.49
8.1.50.0050.00317.63
8.1.40.0000.00817.64
8.1.30.0000.00817.61
8.1.20.0060.00317.78
8.1.10.0040.00417.52
8.1.00.0040.00417.50
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.27
8.0.270.0030.00317.21
8.0.260.0030.00317.20
8.0.250.0030.00417.01
8.0.240.0000.00816.92
8.0.230.0040.00417.07
8.0.220.0040.00316.87
8.0.210.0030.00416.87
8.0.200.0030.00316.90
8.0.190.0040.00417.04
8.0.180.0040.00416.95
8.0.170.0040.00416.99
8.0.160.0000.00816.98
8.0.150.0000.00716.94
8.0.140.0040.00416.80
8.0.130.0000.00613.36
8.0.120.0030.00516.96
8.0.110.0030.00616.96
8.0.100.0080.00016.87
8.0.90.0050.00317.01
8.0.80.0100.00616.85
8.0.70.0000.00717.03
8.0.60.0050.00217.01
8.0.50.0040.00417.00
8.0.30.0110.00817.02
8.0.20.0100.00817.40
8.0.10.0070.00016.88
8.0.00.0120.00616.97
7.4.330.0000.00515.11
7.4.320.0000.00616.62
7.4.300.0000.00616.72
7.4.290.0040.00416.76
7.4.280.0000.00716.55
7.4.270.0030.00316.64
7.4.260.0030.00416.64
7.4.250.0000.00816.74
7.4.240.0040.00216.71
7.4.230.0070.00016.67
7.4.220.0060.01216.77
7.4.210.0090.01116.64
7.4.200.0040.00416.63
7.4.160.0090.00616.42
7.4.150.0160.00317.40
7.4.140.0100.00817.86
7.4.130.0100.00716.74
7.4.120.0090.00816.56
7.4.110.0150.00416.91
7.4.100.0120.00616.58
7.4.90.0030.01816.45
7.4.80.0140.00719.39
7.4.70.0100.00716.70
7.4.60.0120.00416.53
7.4.50.0040.00416.46
7.4.40.0070.01016.57
7.4.30.0100.00716.75
7.4.00.0060.00814.84
7.3.330.0030.00313.20
7.3.320.0030.00313.32
7.3.310.0070.00016.16
7.3.300.0000.00716.44
7.3.290.0040.01116.36
7.3.280.0110.00616.38
7.3.270.0030.02117.40
7.3.260.0140.00716.90
7.3.250.0070.01016.45
7.3.240.0100.00616.67
7.3.230.0130.00316.40
7.3.210.0100.01316.78
7.3.200.0170.00019.39
7.3.190.0070.01016.39
7.3.180.0120.00316.53
7.3.170.0060.00916.62
7.3.160.0040.01216.45
7.3.120.0030.01015.17
7.3.110.0080.00814.89
7.3.100.0070.01014.95
7.3.90.0030.01014.72
7.3.80.0070.00314.82
7.3.70.0040.01214.93
7.3.60.0130.00314.84
7.3.50.0030.01014.99
7.3.40.0070.00715.00
7.3.30.0060.00914.99
7.3.20.0120.00316.91
7.3.10.0090.00616.79
7.3.00.0090.00616.82
7.2.330.0070.01016.80
7.2.320.0140.00916.78
7.2.310.0130.01016.68
7.2.300.0060.00916.64
7.2.290.0090.01016.54
7.2.240.0110.00014.89
7.2.230.0030.00915.09
7.2.220.0030.00615.17
7.2.210.0030.01214.95
7.2.200.0030.01215.20
7.2.190.0030.01014.80
7.2.180.0000.01115.13
7.2.170.0110.00415.13
7.2.160.0060.00915.20
7.2.150.0090.00916.96
7.2.140.0030.01316.88
7.2.130.0110.00716.83
7.2.120.0060.00816.90
7.2.110.0050.00817.00
7.2.100.0070.00816.81
7.2.90.0050.01017.04
7.2.80.0140.00316.94
7.2.70.0080.00516.88
7.2.60.0080.00616.95
7.2.50.0070.00716.85
7.2.40.0020.00917.08
7.2.30.0110.00516.89
7.2.20.0040.00816.99
7.2.10.0060.00716.91
7.2.00.0040.01316.89
7.1.330.0030.01016.04
7.1.320.0060.00915.86
7.1.310.0030.01515.82
7.1.300.0130.00315.95
7.1.290.0090.00615.92
7.1.280.0060.00916.00
7.1.270.0030.01415.91
7.1.260.0000.01215.57
7.1.250.0060.00515.70
7.1.200.0100.00715.58
7.1.70.0120.00017.31
7.1.60.0070.01819.46
7.1.50.0100.01317.25
7.1.00.0070.07322.42
7.0.200.0000.00716.49
7.0.140.0100.06322.04
7.0.60.0000.04320.02
7.0.50.0070.03717.97
7.0.40.0030.09320.14
7.0.30.0200.07020.21
7.0.20.0300.04320.27
7.0.10.0000.04720.24
7.0.00.0070.07020.22
5.6.280.0030.07321.07
5.6.210.0030.04020.55
5.6.200.0030.05318.29
5.6.190.0030.08020.46
5.6.180.0300.05320.39
5.6.170.0270.06320.51
5.6.160.0070.08320.48
5.6.150.0070.06318.20
5.6.140.0070.04018.27
5.6.130.0070.05318.18
5.6.120.0100.08321.00
5.6.110.0000.07321.00
5.6.100.0100.05320.96
5.6.90.0070.05720.98
5.6.80.0130.05320.51
5.5.350.0100.04320.35
5.5.340.0000.04718.05
5.5.330.0030.09320.41
5.5.320.0270.07320.35
5.5.310.0270.05020.34
5.5.300.0070.08317.98
5.5.290.0030.04717.97
5.5.280.0030.08020.87
5.5.270.0030.04020.68
5.5.260.0170.07720.76
5.5.250.0070.07320.75
5.5.240.0030.07320.07
5.4.450.0330.04319.64
5.4.440.0130.05019.64
5.4.430.0230.04719.41
5.4.420.0170.04719.51
5.4.410.0230.04719.32
5.4.400.0170.04319.17
5.4.390.0170.04019.22
5.4.380.0430.05018.50
5.4.370.0330.07018.83
5.4.360.0330.05718.74
5.4.350.0270.06018.47
5.4.340.0300.05718.70
5.4.320.0050.04112.50
5.4.310.0060.03912.50
5.4.300.0050.03912.50
5.4.290.0080.03712.50
5.4.280.0060.03512.40
5.4.270.0080.03412.40
5.4.260.0070.04312.40
5.4.250.0070.03812.40
5.4.240.0050.03712.40
5.4.230.0070.03712.39
5.4.220.0020.04012.39
5.4.210.0060.03412.39
5.4.200.0090.03412.39
5.4.190.0050.03612.38
5.4.180.0090.03212.39
5.4.170.0090.03312.39
5.4.160.0040.03712.39
5.4.150.0050.03712.39
5.4.140.0070.03612.07
5.4.130.0050.03612.05
5.4.120.0050.03612.02
5.4.110.0060.03512.01
5.4.100.0050.03512.01
5.4.90.0080.03312.01
5.4.80.0050.03612.01
5.4.70.0050.03512.01
5.4.60.0090.03112.01
5.4.50.0060.03512.01
5.4.40.0080.03512.00
5.4.30.0070.03611.99
5.4.20.0040.03812.00
5.4.10.0040.03611.99
5.4.00.0060.03511.48
5.3.290.0060.03812.80
5.3.280.0080.03612.71
5.3.270.0060.03912.72
5.3.260.0030.04112.72
5.3.250.0050.03812.72
5.3.240.0110.03212.72
5.3.230.0020.04212.70
5.3.220.0070.03612.68
5.3.210.0040.04012.68
5.3.200.0080.03512.68
5.3.190.0060.03712.67
5.3.180.0060.03612.67
5.3.170.0060.03612.67
5.3.160.0070.03512.67
5.3.150.0040.04012.68
5.3.140.0050.03812.66
5.3.130.0050.04012.66
5.3.120.0050.04212.66
5.3.110.0060.03812.66
5.3.100.0110.03612.12
5.3.90.0050.03712.10
5.3.80.0070.04712.09
5.3.70.0040.03812.09
5.3.60.0030.03912.08
5.3.50.0040.03812.02
5.3.40.0040.03812.02
5.3.30.0050.03511.97
5.3.20.0080.03311.75
5.3.10.0050.03511.73
5.3.00.0060.03511.71
5.2.170.0040.0319.21
5.2.160.0050.0289.21
5.2.150.0050.0309.21
5.2.140.0100.0259.20
5.2.130.0050.0289.17
5.2.120.0060.0269.17
5.2.110.0060.0299.18
5.2.100.0050.0279.17
5.2.90.0090.0249.16
5.2.80.0060.0299.16
5.2.70.0040.0369.17
5.2.60.0000.0349.12
5.2.50.0030.0319.09
5.2.40.0050.0289.07
5.2.30.0080.0259.05
5.2.20.0020.0309.03
5.2.10.0050.0278.93
5.2.00.0050.0288.80
5.1.60.0030.0248.09
5.1.50.0050.0238.08
5.1.40.0060.0228.06
5.1.30.0030.0278.41
5.1.20.0060.0248.43
5.1.10.0040.0268.16
5.1.00.0030.0268.17
5.0.50.0020.0226.64
5.0.40.0040.0186.50
5.0.30.0020.0326.30
5.0.20.0040.0196.27
5.0.10.0030.0216.26
5.0.00.0050.0296.25
4.4.90.0060.0144.78
4.4.80.0040.0134.75
4.4.70.0050.0134.75
4.4.60.0020.0164.76
4.4.50.0020.0164.77
4.4.40.0020.0284.71
4.4.30.0020.0184.76
4.4.20.0010.0174.85
4.4.10.0030.0154.85
4.4.00.0010.0264.76
4.3.110.0000.0184.67
4.3.100.0010.0164.66
4.3.90.0020.0154.63
4.3.80.0040.0224.58
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0030.0143.30
4.3.20.0040.0143.28
4.3.10.0020.0153.24
4.3.00.0030.01018.23

preferences:
38.87 ms | 400 KiB | 5 Q