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) ); $data=array('coba','coba1','coba2'); var_dump( $no, json_encode($no,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.0110.00416.50
8.3.50.0120.00616.37
8.3.40.0000.01818.79
8.3.30.0120.00318.91
8.3.20.0070.00020.33
8.3.10.0080.00023.52
8.3.00.0000.01123.73
8.2.180.0110.00725.92
8.2.170.0100.01019.04
8.2.160.0100.00722.96
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00420.75
8.2.120.0040.00426.35
8.2.110.0090.00019.21
8.2.100.0090.00318.04
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0030.00517.93
8.2.50.0070.00318.09
8.2.40.0030.00522.27
8.2.30.0040.00419.50
8.2.20.0040.00417.76
8.2.10.0040.00418.01
8.2.00.0040.00418.23
8.1.280.0070.00725.92
8.1.270.0080.00822.20
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0070.00322.56
8.1.230.0050.00517.70
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0000.00918.50
8.1.160.0040.00420.77
8.1.150.0030.00620.79
8.1.140.0040.00419.50
8.1.130.0000.00817.46
8.1.120.0050.00317.46
8.1.110.0040.00417.46
8.1.100.0030.00417.50
8.1.90.0000.00817.45
8.1.80.0050.00317.35
8.1.70.0000.00817.38
8.1.60.0050.00317.62
8.1.50.0040.00417.52
8.1.40.0040.00417.55
8.1.30.0000.00817.52
8.1.20.0050.00317.65
8.1.10.0050.00317.50
8.1.00.0050.00217.44
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0000.00717.18
8.0.260.0050.00316.95
8.0.250.0030.00316.87
8.0.240.0030.00317.02
8.0.230.0040.00416.98
8.0.220.0090.00016.98
8.0.210.0060.00316.89
8.0.200.0000.00717.02
8.0.190.0000.00817.00
8.0.180.0070.00016.88
8.0.170.0000.00716.96
8.0.160.0000.00716.89
8.0.150.0020.00516.87
8.0.140.0070.00016.94
8.0.130.0030.00313.43
8.0.120.0040.00416.95
8.0.110.0040.00416.94
8.0.100.0000.00716.96
8.0.90.0020.00516.87
8.0.80.0120.00316.96
8.0.70.0050.00217.03
8.0.60.0050.00316.95
8.0.50.0000.00716.99
8.0.30.0080.00917.14
8.0.20.0090.01017.40
8.0.10.0070.00017.20
8.0.00.0080.00916.64
7.4.330.0060.00016.82
7.4.320.0030.00316.58
7.4.300.0040.00416.52
7.4.290.0070.00016.51
7.4.280.0070.00016.60
7.4.270.0040.00416.42
7.4.260.0000.00716.40
7.4.250.0000.00816.56
7.4.240.0070.00016.52
7.4.230.0070.00016.45
7.4.220.0120.00816.51
7.4.210.0100.00416.55
7.4.200.0070.00016.49
7.4.160.0040.01316.45
7.4.150.0130.00617.40
7.4.140.0140.00817.86
7.4.130.0080.01216.59
7.4.120.0120.00916.51
7.4.110.0110.00616.60
7.4.100.0090.01716.68
7.4.90.0120.01216.64
7.4.80.0130.01219.39
7.4.70.0110.00616.69
7.4.60.0060.01216.46
7.4.50.0030.01516.53
7.4.40.0100.01016.38
7.4.30.0050.01716.51
7.4.00.0040.00714.80
7.3.330.0030.00312.88
7.3.320.0020.00313.10
7.3.310.0030.00316.07
7.3.300.0030.00316.23
7.3.290.0060.00916.17
7.3.280.0090.01016.25
7.3.270.0090.01217.40
7.3.260.0180.00016.46
7.3.250.0110.00816.18
7.3.240.0060.01216.28
7.3.230.0150.00716.39
7.3.210.0060.01216.32
7.3.200.0150.00019.39
7.3.190.0110.00716.36
7.3.180.0060.01116.22
7.3.170.0090.00916.30
7.3.160.0140.00916.19
7.2.330.0070.01216.46
7.2.320.0100.01616.42
7.2.310.0070.01016.30
7.2.300.0090.01216.50
7.2.290.0140.01116.66
7.2.60.0080.00816.76
7.2.00.0120.00319.20
7.1.200.0000.01115.85
7.1.100.0090.00918.10
7.1.70.0080.00417.09
7.1.60.0100.01619.40
7.1.50.0030.01016.80
7.1.00.0000.08022.57
7.0.200.0080.00314.57
7.0.80.0030.04021.68
7.0.70.0000.04021.77
7.0.60.0000.04021.82
7.0.50.0070.05022.20
7.0.40.0030.08720.05
7.0.30.0000.05320.18
7.0.20.0000.07720.16
7.0.10.0070.06020.08
7.0.00.0000.05320.07
5.6.280.0000.03320.92
5.6.230.0070.06320.70
5.6.220.0000.04020.62
5.6.210.0000.03720.69
5.6.200.0030.05721.17
5.6.190.0100.07721.14
5.6.180.0030.04021.06
5.6.170.0030.07721.04
5.6.160.0000.06021.05
5.6.150.0070.07721.02
5.6.140.0030.07020.95
5.6.130.0070.06721.04
5.6.120.0100.07721.00
5.6.110.0070.04321.06
5.6.100.0000.09020.94
5.6.90.0070.08721.01
5.6.80.0070.08020.34
5.6.70.0070.04320.42
5.6.60.0000.08020.37
5.6.50.0130.06020.46
5.6.40.0000.07720.41
5.6.30.0070.07320.47
5.6.20.0070.06320.30
5.6.10.0130.06720.37
5.6.00.0100.04320.45
5.5.370.0000.04320.52
5.5.360.0030.03720.37
5.5.350.0030.04320.28
5.5.340.0030.04020.93
5.5.330.0070.07720.76
5.5.320.0030.08020.92
5.5.310.0070.04320.85
5.5.300.0070.08020.75
5.5.290.0030.09020.77
5.5.280.0100.07720.82
5.5.270.0000.08320.86
5.5.260.0070.05320.76
5.5.250.0070.03720.57
5.5.240.0070.05020.24
5.5.230.0030.08320.23
5.5.220.0100.05720.13
5.5.210.0030.05320.17
5.5.200.0070.07020.21
5.5.190.0000.07720.23
5.5.180.0030.04020.14
5.5.160.0000.04720.23
5.5.150.0030.07720.15
5.5.140.0030.04720.17
5.5.130.0070.04320.16
5.5.120.0100.07320.23
5.5.110.0100.07320.21
5.5.100.0030.05320.14
5.5.90.0000.07320.12
5.5.80.0070.05019.97
5.5.70.0070.07720.08
5.5.60.0000.07719.95
5.5.50.0130.04320.06
5.5.40.0030.07720.05
5.5.30.0070.07719.92
5.5.20.0030.08020.08
5.5.10.0100.05019.97
5.5.00.0070.07720.12

preferences:
61.23 ms | 400 KiB | 5 Q