3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Strings representing numbers automatically turned into numbers".php_eol; $numbers = array('+123123', '-123123', '1.2e3', '0.00001'); var_dump( $numbers, json_encode($numbers, JSON_NUMERIC_CHECK) ); echo "Strings containing improperly formatted numbers".PHP_EOL; $strings = array('+a33123456789', 'a123'); var_dump( $strings, json_encode($strings, 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.0030.01416.62
8.3.50.0100.00821.16
8.3.40.0070.00718.59
8.3.30.0140.00018.66
8.3.20.0070.00020.21
8.3.10.0080.00023.48
8.3.00.0000.00721.80
8.2.180.0100.00318.29
8.2.170.0130.00622.96
8.2.160.0100.00720.22
8.2.150.0040.01124.18
8.2.140.0080.00024.66
8.2.130.0000.00920.80
8.2.120.0000.00826.35
8.2.110.0030.00619.27
8.2.100.0040.00817.80
8.2.90.0070.00019.05
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0040.00818.09
8.2.40.0080.00022.34
8.2.30.0000.00719.50
8.2.20.0050.00217.77
8.2.10.0050.00317.98
8.2.00.0020.00518.11
8.1.280.0070.01325.92
8.1.270.0030.00522.05
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0090.00022.52
8.1.230.0070.00417.76
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0080.00018.55
8.1.160.0000.00720.67
8.1.150.0030.00318.95
8.1.140.0030.00619.51
8.1.130.0070.00019.09
8.1.120.0000.00917.34
8.1.110.0050.00217.43
8.1.100.0000.00717.36
8.1.90.0060.00317.26
8.1.80.0000.00917.39
8.1.70.0070.00017.31
8.1.60.0030.00517.40
8.1.50.0030.00617.51
8.1.40.0060.00317.34
8.1.30.0030.00517.55
8.1.20.0040.00417.60
8.1.10.0030.00617.49
8.1.00.0000.00717.44
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0050.00318.45
8.0.270.0050.00317.17
8.0.260.0030.00316.73
8.0.250.0030.00316.92
8.0.240.0000.00617.04
8.0.230.0040.00316.90
8.0.220.0000.00816.88
8.0.210.0030.00316.97
8.0.200.0000.00717.02
8.0.190.0040.00417.00
8.0.180.0040.00416.92
8.0.170.0060.00317.02
8.0.160.0030.00316.93
8.0.150.0050.00316.87
8.0.140.0030.00416.93
8.0.130.0050.00013.37
8.0.120.0040.00416.96
8.0.110.0000.00916.85
8.0.100.0000.00716.86
8.0.90.0040.00416.83
8.0.80.0130.00316.94
8.0.70.0040.00416.98
8.0.60.0040.00416.75
8.0.50.0070.00017.00
8.0.30.0090.00917.21
8.0.20.0110.00817.40
8.0.10.0050.00217.08
8.0.00.0060.01016.75
7.4.330.0020.00216.70
7.4.320.0000.00616.65
7.4.300.0020.00216.44
7.4.290.0030.00316.52
7.4.280.0070.00016.64
7.4.270.0070.00016.50
7.4.260.0070.00016.52
7.4.250.0000.00716.61
7.4.240.0070.00016.50
7.4.230.0070.00016.69
7.4.220.0160.00916.51
7.4.210.0070.00716.64
7.4.200.0050.00316.58
7.4.160.0050.01116.52
7.4.150.0130.01017.40
7.4.140.0120.00917.86
7.4.130.0070.01116.50
7.4.120.0110.00816.44
7.4.110.0030.01316.43
7.4.100.0100.01416.62
7.4.90.0080.00816.50
7.4.80.0100.00719.39
7.4.70.0100.00616.51
7.4.60.0090.01216.43
7.4.50.0110.00416.35
7.4.40.0140.00716.59
7.4.30.0060.01516.22
7.4.10.0040.01515.46
7.4.00.0090.00915.24
7.3.330.0030.00313.02
7.3.320.0050.00013.10
7.3.310.0050.00316.34
7.3.300.0030.00316.17
7.3.290.0060.00816.23
7.3.280.0080.01016.23
7.3.270.0090.01217.40
7.3.260.0140.00316.25
7.3.250.0060.01416.37
7.3.240.0140.00516.38
7.3.230.0170.00016.39
7.3.210.0060.01116.27
7.3.200.0110.00519.39
7.3.190.0130.00316.50
7.3.180.0090.00616.29
7.3.170.0150.00616.55
7.3.160.0030.02016.29
7.3.130.0090.01015.28
7.3.120.0060.01015.16
7.3.110.0060.01015.03
7.3.100.0060.01015.19
7.3.90.0070.00915.09
7.3.80.0030.00915.11
7.3.70.0040.01115.09
7.3.60.0070.00615.11
7.3.50.0040.00715.15
7.3.40.0100.00415.16
7.3.30.0070.00715.08
7.3.20.0050.00916.84
7.3.10.0070.00416.84
7.3.00.0070.00716.96
7.2.330.0100.00716.71
7.2.320.0070.01116.63
7.2.310.0140.00316.73
7.2.300.0090.00916.38
7.2.290.0110.00816.59
7.2.260.0080.01015.64
7.2.250.0090.00915.40
7.2.240.0060.01115.35
7.2.230.0060.01115.57
7.2.220.0080.00715.34
7.2.210.0040.01115.35
7.2.200.0060.00515.43
7.2.190.0020.01115.30
7.2.180.0090.00415.41
7.2.170.0080.00415.41
7.2.160.0090.00615.31
7.2.150.0070.00617.15
7.2.140.0070.00617.28
7.2.130.0050.00817.39
7.2.120.0070.00817.29
7.2.110.0050.01017.26
7.2.100.0070.00617.09
7.2.90.0060.00417.17
7.2.80.0050.00817.38
7.2.70.0070.01017.36
7.2.60.0050.01017.25
7.2.50.0050.00817.35
7.2.40.0060.00917.37
7.2.30.0070.00817.41
7.2.20.0060.00717.12
7.2.10.0060.00517.33
7.2.00.0050.00917.75
7.1.330.0070.00715.96
7.1.320.0060.00716.23
7.1.310.0040.00916.11
7.1.300.0030.01116.08
7.1.290.0050.00915.98
7.1.280.0020.01116.03
7.1.270.0040.00716.02
7.1.260.0070.00615.93
7.1.250.0060.00616.21
7.1.240.0050.00916.14
7.1.230.0040.00916.13
7.1.220.0030.01016.00
7.1.210.0050.00916.12
7.1.200.0050.00915.95
7.1.190.0050.00816.10
7.1.180.0010.01116.20
7.1.170.0050.00816.16
7.1.160.0030.00916.20
7.1.150.0080.00416.27
7.1.140.0030.01016.19
7.1.130.0070.00616.21
7.1.120.0020.01216.25
7.1.110.0080.00916.22
7.1.100.0070.00516.65
7.1.90.0060.00916.13
7.1.80.0050.01116.21
7.1.70.0050.00916.41
7.1.60.0060.01017.12
7.1.50.0060.00816.23
7.1.40.0050.00916.24
7.1.30.0050.00816.22
7.1.20.0010.01216.01
7.1.10.0040.00816.13
7.1.00.0040.02517.85
7.0.330.0030.00815.81
7.0.320.0060.00515.82
7.0.310.0060.00815.83
7.0.300.0030.00915.82
7.0.290.0070.01015.79
7.0.280.0030.00815.90
7.0.270.0060.00615.78
7.0.260.0080.00615.78
7.0.250.0070.00715.88
7.0.240.0080.00615.87
7.0.230.0060.00915.81
7.0.220.0060.00615.76
7.0.210.0090.00515.88
7.0.200.0080.00715.63
7.0.190.0060.00815.74
7.0.180.0060.00615.71
7.0.170.0040.00615.78
7.0.160.0050.00815.87
7.0.150.0040.01015.83
7.0.140.0030.00915.87
7.0.130.0030.00815.70
7.0.120.0040.00915.89
7.0.110.0060.00715.91
7.0.100.0060.00815.72
7.0.90.0180.02016.93
7.0.80.0180.02716.84
7.0.70.0160.02516.86
7.0.60.0190.01616.90
7.0.50.0220.01516.93
7.0.40.0040.02715.44
7.0.30.0080.02515.38
7.0.20.0060.01915.46
7.0.10.0050.02715.49
7.0.00.0040.02915.44
5.6.400.0050.00714.86
5.6.390.0090.00214.93
5.6.380.0030.00714.74
5.6.370.0070.00814.71
5.6.360.0050.00714.90
5.6.350.0040.00814.88
5.6.340.0070.00614.90
5.6.330.0050.01014.75
5.6.320.0060.00514.74
5.6.310.0090.00614.98
5.6.300.0090.00414.73
5.6.290.0050.00914.76
5.6.280.0040.01516.17
5.6.270.0070.00514.94
5.6.260.0050.00914.90
5.6.250.0020.01014.86
5.6.240.0070.01816.35
5.6.230.0060.02616.26
5.6.220.0050.02216.19
5.6.210.0050.02616.22
5.6.200.0080.02416.28
5.6.190.0050.02216.28
5.6.180.0060.02716.28
5.6.170.0080.02216.34
5.6.160.0030.02816.31
5.6.150.0050.02016.31
5.6.140.0050.01816.39
5.6.130.0050.02816.40
5.6.120.0060.02816.41
5.6.110.0090.02316.31
5.6.100.0080.02316.40
5.6.90.0020.02716.36
5.6.80.0070.01616.17
5.6.70.0030.01916.20
5.6.60.0030.02616.29
5.6.50.0030.02216.16
5.6.40.0080.02516.05
5.6.30.0060.02216.19
5.6.20.0060.02516.06
5.6.10.0060.02416.23
5.6.00.0080.02116.09
5.5.380.0090.02416.05
5.5.370.0080.02316.13
5.5.360.0040.01816.34
5.5.350.0100.02216.22
5.5.340.0050.02416.23
5.5.330.0050.02516.29
5.5.320.0060.01716.37
5.5.310.0090.02116.29
5.5.300.0050.01816.21
5.5.290.0050.02816.38
5.5.280.0070.02616.37
5.5.270.0030.01916.21
5.5.260.0060.02716.18
5.5.250.0040.02616.20
5.5.240.0090.02216.13
5.5.230.0070.02415.95
5.5.220.0060.01715.96
5.5.210.0060.02516.12
5.5.200.0110.02016.14
5.5.190.0050.02916.03
5.5.180.0050.01716.11
5.5.170.0080.00514.57
5.5.160.0100.01516.10
5.5.150.0080.02116.03
5.5.140.0070.02716.15
5.5.130.0060.02516.08
5.5.120.0030.01816.08
5.5.110.0040.02816.00
5.5.100.0050.02516.16
5.5.90.0050.01815.99
5.5.80.0060.01415.90
5.5.70.0050.01416.03
5.5.60.0060.02515.92
5.5.50.0050.02716.07
5.5.40.0070.02516.04
5.5.30.0060.02415.96
5.5.20.0030.02516.07
5.5.10.0080.02016.03
5.5.00.0050.02615.84

preferences:
103.81 ms | 401 KiB | 5 Q