3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); $value = $formatter->parse('2147483647', \NumberFormatter::TYPE_INT32); var_dump($value); $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); $value = $formatter->parse('2147483650', \NumberFormatter::TYPE_INT64); var_dump($value);

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.0140.03119.25
8.3.60.0040.03619.50
8.3.50.0110.03320.12
8.3.40.0120.00919.79
8.3.30.0040.01119.80
8.3.20.0060.00319.76
8.3.10.0090.00021.64
8.3.00.0040.00420.75
8.2.180.0320.02619.25
8.2.170.0070.01122.96
8.2.160.0060.00922.50
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0200.00018.75
8.2.110.0030.00722.69
8.2.100.0030.00919.28
8.2.90.0000.00819.72
8.2.80.0040.00421.00
8.2.70.0040.00419.13
8.2.60.0030.00619.13
8.2.50.0040.00419.13
8.2.40.0000.00819.66
8.2.30.0040.01219.70
8.2.20.0050.00519.18
8.2.10.0050.00319.36
8.2.00.0110.00519.15
8.1.280.0030.02425.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.42
8.1.230.0000.01122.66
8.1.220.0040.00419.14
8.1.210.0100.00320.34
8.1.200.0040.00419.13
8.1.190.0070.00418.60
8.1.180.0050.00318.93
8.1.170.0040.00420.49
8.1.160.0000.00820.13
8.1.150.0070.00419.88
8.1.140.0090.00318.93
8.1.130.0040.00419.38
8.1.120.0110.00419.06
8.1.110.0080.00419.11
8.1.100.0000.00918.89
8.1.90.0090.00619.19
8.1.80.0070.00419.29
8.1.70.0060.00618.93
8.1.60.0100.01019.25
8.1.50.0000.00919.24
8.1.40.0080.00619.26
8.1.30.0080.00019.30
8.1.20.0000.00919.44
8.1.10.0030.00519.21
8.1.00.0110.00519.34
8.0.300.0000.00721.03
8.0.290.0030.00518.38
8.0.280.0070.00019.67
8.0.270.0000.00718.90
8.0.260.0000.00718.43
8.0.250.0070.00318.58
8.0.240.0040.00918.45
8.0.230.0030.00518.36
8.0.220.0080.00018.52
8.0.210.0030.00718.58
8.0.200.0120.00018.79
8.0.190.0130.00018.60
8.0.180.0060.00318.52
8.0.170.0080.00818.48
8.0.160.0030.00518.42
8.0.150.0080.00618.23
8.0.140.0170.00018.51
8.0.130.0000.00613.26
8.0.120.0000.01018.57
8.0.110.0060.00618.55
8.0.100.0060.00318.54
8.0.90.0040.00418.62
8.0.80.0070.01318.63
8.0.70.0050.00518.62
8.0.60.0080.00018.81
8.0.50.0050.00518.46
8.0.30.0070.01419.00
8.0.20.0080.01018.83
8.0.10.0000.00918.82
8.0.00.0210.00318.54
7.4.330.0000.00512.87
7.4.320.0060.00018.32
7.4.300.0080.00418.29
7.4.290.0080.00618.37
7.4.280.0120.00818.37
7.4.270.0040.00818.35
7.4.260.0030.00313.25
7.4.250.0080.00318.41
7.4.240.0040.00418.42
7.4.230.0000.00818.26
7.4.220.0150.01818.31
7.4.210.0080.00618.43
7.4.200.0050.00318.37
7.4.190.0050.00218.55
7.4.160.0160.00317.85
7.4.150.0090.01418.20
7.4.140.0140.01118.24
7.4.130.0170.00518.25
7.4.120.0130.01218.21
7.4.110.0140.00818.26
7.4.100.0090.01318.37
7.4.90.0220.00518.31
7.4.80.0130.00919.39
7.4.70.0120.01218.07
7.4.60.0200.00718.40
7.4.50.0060.00617.84
7.4.40.0130.00318.22
7.4.30.0100.01018.12
7.4.00.0030.01316.59
7.3.330.0030.00313.03
7.3.320.0040.00413.11
7.3.310.0000.00817.57
7.3.300.0070.00017.84
7.3.290.0130.01017.96
7.3.280.0080.01217.99
7.3.270.0070.01018.42
7.3.260.0210.00018.02
7.3.250.0170.00818.01
7.3.240.0160.00618.23
7.3.230.0170.00818.23
7.3.210.0100.01018.41
7.3.200.0070.01118.36
7.3.190.0090.01218.02
7.3.180.0170.00318.16
7.3.170.0160.00617.96
7.3.160.0160.00718.00
7.3.120.0030.01416.22
7.3.10.0150.01117.86
7.3.00.0150.01117.85
7.2.330.0230.01718.18
7.2.320.0070.01617.84
7.2.310.0120.01518.33
7.2.300.0070.01517.86
7.2.290.0160.00618.13
7.2.130.0100.00718.08
7.2.120.0180.01118.03
7.2.110.0260.00818.10
7.2.100.0230.00718.09
7.2.90.0220.00418.44
7.2.80.0150.00418.21
7.2.70.0120.00618.06
7.2.60.0080.00718.03
7.2.50.0070.01018.29
7.2.40.0210.00318.11
7.2.30.0170.00318.16
7.2.20.0100.01018.16
7.2.10.0120.00618.38
7.2.00.0090.00919.72
7.1.250.0210.00917.44
7.1.200.0090.00617.45
7.1.100.0000.01719.85
7.1.70.0000.01019.17
7.1.60.0230.00719.40
7.1.50.0070.01019.11
7.1.00.0070.07324.38
7.0.200.0410.00716.80
7.0.140.0030.07324.04
7.0.120.0030.07723.68
7.0.60.0100.04021.95
7.0.50.0000.08017.79
7.0.40.0030.09321.84
7.0.30.0170.05321.75
7.0.20.0230.04721.78
7.0.10.0070.09021.85
7.0.00.0070.05321.92
5.6.280.0070.07322.41
5.6.210.0030.08322.47
5.6.200.0070.08018.16
5.6.190.0130.08322.20
5.6.180.0230.08322.06
5.6.170.0270.04022.06
5.6.160.0200.07022.20
5.6.150.0130.03318.08
5.6.140.0070.08718.15
5.6.130.0070.03718.18
5.6.120.0100.06322.76
5.6.110.0070.08722.99
5.6.100.0030.04022.83
5.6.90.0130.07722.94
5.6.80.0130.07722.19
5.6.70.3100.03322.03
5.5.350.0100.04022.28
5.5.340.0100.07717.88
5.5.330.0030.08721.70
5.5.320.0400.07021.98
5.5.310.0100.05321.96
5.5.300.0070.04318.02
5.5.290.0100.08017.89
5.5.280.0200.06022.71
5.5.270.0030.04722.69
5.5.260.0030.08022.59
5.5.250.0130.06322.47
5.5.240.0300.06722.05
5.4.450.0070.04020.84
5.4.440.0130.04020.81
5.4.430.0130.08020.78
5.4.420.0170.07320.86
5.4.410.0000.08320.98
5.4.400.0100.04020.63
5.4.390.0070.07720.52
5.4.380.0030.05320.63
5.4.370.0030.06020.52
5.4.360.0030.05320.86
5.4.350.0070.03320.43
5.4.340.0030.04320.71
5.4.320.0070.03320.43
5.4.310.0070.03320.39
5.4.300.0000.04020.86
5.4.290.0030.03720.38
5.4.280.0030.04020.76
5.4.270.0100.03320.71
5.4.260.0030.03720.82
5.4.250.0070.03320.82
5.4.240.0030.03720.79
5.4.230.0000.04320.76
5.4.220.0030.04720.81
5.4.210.0030.03720.38
5.4.200.0170.02320.47
5.4.190.0030.03720.74
5.4.180.0100.03020.70
5.4.170.0030.04020.73
5.4.160.0000.04020.77
5.4.150.0000.04020.84
5.4.140.0030.03717.95
5.4.130.0000.03717.87
5.4.120.0030.03317.88
5.4.110.0130.03317.97
5.4.100.0030.03718.12
5.4.90.0000.03718.12
5.4.80.0170.05017.88
5.4.70.0100.05017.96
5.4.60.0070.03717.91
5.4.50.0030.04017.86
5.4.40.0100.03718.03
5.4.30.0100.03317.91
5.4.20.0000.04318.04
5.4.10.0100.07318.09
5.4.00.0030.07317.39
5.3.290.0100.03014.59
5.3.280.0030.03714.52
5.3.270.0130.02714.55
5.3.260.0100.03314.69
5.3.250.0030.03714.53
5.3.240.0030.03314.63
5.3.230.0000.04014.52
5.3.220.0000.03714.50
5.3.210.0070.03314.46
5.3.200.0070.03314.50
5.3.190.0070.03314.49
5.3.180.0000.03714.50
5.3.170.0100.04714.46
5.3.160.0070.08014.38
5.3.150.0070.05014.48
5.3.140.0030.04014.47
5.3.130.0030.05714.64
5.3.120.0070.04714.46
5.3.110.0030.04314.63
5.3.100.0070.08013.98
5.3.90.0000.07013.81
5.3.80.0100.07714.11
5.3.70.0130.06713.96
5.3.60.0030.07313.98
5.3.50.0170.07013.76
5.3.40.0100.04713.90
5.3.30.0030.08013.84
5.3.20.0070.05313.67
5.3.10.0070.05013.63
5.3.00.0100.05313.57
5.2.170.0000.06011.04
5.2.160.0030.06311.11
5.2.150.0100.06011.09
5.2.140.0070.04311.09
5.2.130.0070.06010.98
5.2.120.0030.06011.07
5.2.110.0100.05710.92
5.2.100.0070.03711.11
5.2.90.0030.06310.93
5.2.80.0030.06711.00
5.2.70.0030.05710.92
5.2.60.0070.06710.87
5.2.50.0070.06010.90
5.2.40.0130.05311.06
5.2.30.0000.07011.13
5.2.20.0030.04310.89
5.2.10.0030.06710.75
5.2.00.0130.05010.67
5.1.60.0030.04310.07
5.1.50.0030.0509.90
5.1.40.0030.03310.04
5.1.30.0000.06710.34
5.1.20.0030.05010.34
5.1.10.0030.04710.04
5.1.00.0030.04710.05
5.0.50.0070.0408.56
5.0.40.0030.0438.40
5.0.30.0070.0608.24
5.0.20.0000.0378.24
5.0.10.0000.0238.24
5.0.00.0030.0538.24
4.4.90.0030.0378.24
4.4.80.0000.0378.24
4.4.70.0000.0278.24
4.4.60.0030.0278.24
4.4.50.0000.0208.24
4.4.40.0030.0238.24
4.4.30.0000.0208.24
4.4.20.0030.0378.24
4.4.10.0030.0378.24
4.4.00.0030.0538.24
4.3.110.0000.0378.24
4.3.100.0030.0338.24
4.3.90.0030.0178.24
4.3.80.0030.0508.24
4.3.70.0000.0238.24
4.3.60.0000.0178.24
4.3.50.0030.0338.24
4.3.40.0030.0438.24
4.3.30.0000.0338.24
4.3.20.0000.0378.24
4.3.10.0000.0208.24
4.3.00.0030.0108.24

preferences:
47.83 ms | 401 KiB | 5 Q