3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Strings representing numbers automatically turned into numbers \n"; $numbers = array('+123123', '-123123', '1.2e3', '0.00001'); var_dump( $numbers, json_encode($numbers, JSON_NUMERIC_CHECK) );

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.13
8.3.50.0140.00621.10
8.3.40.0070.00718.46
8.3.30.0120.00318.49
8.3.20.0080.00020.29
8.3.10.0040.00423.48
8.3.00.0070.00323.61
8.2.180.0140.00316.38
8.2.170.0040.01522.96
8.2.160.0200.00020.35
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00420.62
8.2.120.0040.00426.35
8.2.110.0080.00019.30
8.2.100.0080.00418.04
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0040.00818.09
8.2.40.0040.00422.33
8.2.30.0060.00319.43
8.2.20.0030.00517.52
8.2.10.0070.00017.92
8.2.00.0040.00417.95
8.1.280.0030.01125.92
8.1.270.0070.01022.19
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0030.00622.62
8.1.230.0070.00417.82
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0050.00318.64
8.1.160.0060.00320.68
8.1.150.0000.00720.79
8.1.140.0040.00419.55
8.1.130.0050.00317.63
8.1.120.0000.00917.31
8.1.110.0000.00817.38
8.1.100.0040.00417.35
8.1.90.0080.00017.34
8.1.80.0030.00517.29
8.1.70.0030.00317.27
8.1.60.0040.00417.46
8.1.50.0000.00817.48
8.1.40.0080.00017.34
8.1.30.0040.00417.53
8.1.20.0040.00417.39
8.1.10.0050.00217.38
8.1.00.0050.00317.40
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0000.00717.25
8.0.260.0040.00417.29
8.0.250.0040.00416.89
8.0.240.0030.00316.86
8.0.230.0070.00016.85
8.0.220.0040.00416.71
8.0.210.0000.00716.83
8.0.200.0000.00716.86
8.0.190.0050.00216.89
8.0.180.0050.00216.87
8.0.170.0050.00316.88
8.0.160.0040.00416.66
8.0.150.0000.00716.71
8.0.140.0080.00016.66
8.0.130.0000.00513.23
8.0.120.0040.00416.69
8.0.110.0000.00716.72
8.0.100.0040.00416.59
8.0.90.0000.00716.73
8.0.80.0110.01116.78
8.0.70.0070.00016.80
8.0.60.0040.00416.88
8.0.50.0070.00016.77
8.0.30.0060.01117.15
8.0.20.0120.01017.40
8.0.10.0000.00716.81
8.0.00.0070.01216.71
7.4.330.0000.00516.85
7.4.320.0000.00616.48
7.4.300.0070.00016.38
7.4.290.0040.00416.55
7.4.280.0030.00316.39
7.4.270.0080.00016.38
7.4.260.0070.00016.41
7.4.250.0040.00416.32
7.4.240.0060.00316.33
7.4.230.0000.00716.46
7.4.220.0120.00616.64
7.4.210.0070.00716.61
7.4.200.0040.00416.52
7.4.160.0090.00616.29
7.4.150.0070.01017.40
7.4.140.0120.00917.86
7.4.130.0090.01016.52
7.4.120.0140.00716.37
7.4.110.0140.00316.43
7.4.100.0100.01616.51
7.4.90.0130.00916.42
7.4.80.0090.00919.39
7.4.70.0100.01016.30
7.4.60.0060.01216.37
7.4.50.0040.00916.49
7.4.40.0110.00516.40
7.4.30.0140.00816.23
7.4.00.0100.00714.76
7.3.330.0050.00013.07
7.3.320.0000.00513.01
7.3.310.0070.00016.14
7.3.300.0050.00216.16
7.3.290.0080.00716.13
7.3.280.0130.00816.11
7.3.270.0110.00617.40
7.3.260.0140.00916.34
7.3.250.0090.01016.29
7.3.240.0120.00716.19
7.3.230.0130.00916.39
7.3.210.0090.00816.53
7.3.200.0040.01219.39
7.3.190.0070.01016.39
7.3.180.0030.01216.07
7.3.170.0120.00616.27
7.3.160.0160.00016.20
7.3.10.0090.00616.65
7.3.00.0070.01016.56
7.2.330.0170.00316.26
7.2.320.0060.01016.54
7.2.310.0090.01416.55
7.2.300.0000.01716.27
7.2.290.0150.00616.50
7.2.130.0030.01016.83
7.2.120.0100.00316.80
7.2.110.0030.01016.92
7.2.100.0060.00916.79
7.2.90.0100.00616.80
7.2.80.0030.01016.83
7.2.70.0080.00516.95
7.2.60.0060.00716.94
7.2.50.0100.00316.72
7.2.40.0000.01216.87
7.2.30.0040.01116.74
7.2.20.0040.00816.79
7.2.10.0070.00716.83
7.2.00.0070.00717.99
7.1.250.0040.00815.75
7.1.200.0120.00015.72
7.1.100.0200.01017.42
7.1.70.0060.00317.25
7.1.60.0040.01919.40
7.1.50.0090.00916.86
7.1.00.0000.09322.44
7.0.200.0090.00614.83
7.0.90.0000.05019.97
7.0.80.0530.03719.90
7.0.70.0430.05319.96
7.0.60.0170.04019.93
7.0.50.0330.04320.25
7.0.40.0100.03320.10
7.0.30.0030.06320.10
7.0.20.0030.06320.18
7.0.10.0070.04320.02
7.0.00.0030.04720.10
5.6.280.0000.05321.02
5.6.240.0000.04320.62
5.6.230.0030.03720.65
5.6.220.0100.07320.66
5.6.210.0070.08020.64
5.6.200.0070.04020.91
5.6.190.0100.03721.08
5.6.180.0000.04321.04
5.6.170.0070.04021.02
5.6.160.0100.06321.14
5.6.150.0070.04021.04
5.6.140.0000.05321.06
5.6.130.0000.05021.04
5.6.120.0130.03321.09
5.6.110.0030.03721.06
5.6.100.0070.04021.09
5.6.90.0070.04020.93
5.6.80.0030.04020.38
5.6.70.0100.05020.37
5.6.60.0030.04020.46
5.6.50.0030.04020.45
5.6.40.0000.05020.36
5.6.30.0030.04020.43
5.6.20.0100.07720.51
5.6.10.0170.07020.40
5.6.00.0070.08020.36
5.5.380.0100.05320.41
5.5.370.0030.05720.34
5.5.360.0070.04320.38
5.5.350.0030.04320.33
5.5.340.0000.04720.79
5.5.330.0130.07020.88
5.5.320.0000.04720.73
5.5.310.0030.04320.79
5.5.300.0130.07320.85
5.5.290.0070.04720.92
5.5.280.0070.05320.63
5.5.270.0030.04320.91
5.5.260.0070.03720.91
5.5.250.0000.04020.73
5.5.240.0100.03720.25
5.5.230.0100.03320.20
5.5.220.0000.04020.26
5.5.210.0030.04020.25
5.5.200.0100.03320.17
5.5.190.0100.03320.10
5.5.180.0100.06320.12
5.5.160.0030.08320.23
5.5.150.0100.04320.27
5.5.140.0070.07320.24
5.5.130.0070.07720.27
5.5.120.0070.07020.06
5.5.110.0100.04020.22
5.5.100.0070.08020.06
5.5.90.0100.06720.05
5.5.80.0100.04320.10
5.5.70.0070.07319.95
5.5.60.0130.05720.14
5.5.50.0070.06720.14
5.5.40.0070.08020.08
5.5.30.0100.07019.96
5.5.20.0170.04720.07
5.5.10.0070.07720.10
5.5.00.0170.06319.99

preferences:
52.82 ms | 401 KiB | 5 Q