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) ); echo"percobaan kedua \n"; $data=array('coba','coba1','coba2'); var_dump( $number, json_encode($number,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.88
8.3.50.0030.01216.38
8.3.40.0150.00318.89
8.3.30.0120.00318.60
8.3.20.0030.00520.29
8.3.10.0000.00823.61
8.3.00.0040.00721.77
8.2.180.0150.00616.75
8.2.170.0110.00722.96
8.2.160.0120.00320.50
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00421.00
8.2.120.0030.00626.35
8.2.110.0060.00320.94
8.2.100.0040.00817.78
8.2.90.0000.00918.03
8.2.80.0030.00619.95
8.2.70.0030.00517.80
8.2.60.0030.00618.03
8.2.50.0030.00518.10
8.2.40.0000.00820.46
8.2.30.0000.00819.43
8.2.20.0040.00417.86
8.2.10.0050.00218.11
8.2.00.0000.00818.00
8.1.280.0110.00425.92
8.1.270.0100.01021.95
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0070.00322.20
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0080.00017.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.49
8.1.160.0030.00322.11
8.1.150.0040.00420.71
8.1.140.0000.00819.57
8.1.130.0030.00417.76
8.1.120.0030.00717.45
8.1.110.0070.00017.45
8.1.100.0000.00717.45
8.1.90.0070.00017.51
8.1.80.0000.00817.46
8.1.70.0030.00517.49
8.1.60.0040.00417.55
8.1.50.0040.00417.57
8.1.40.0040.00417.43
8.1.30.0080.00017.63
8.1.20.0070.00017.70
8.1.10.0000.00817.51
8.1.00.0000.00817.40
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0070.00017.23
8.0.260.0030.00317.25
8.0.250.0030.00316.92
8.0.240.0000.00716.99
8.0.230.0000.00716.93
8.0.220.0030.00716.85
8.0.210.0000.00816.95
8.0.200.0070.00017.02
8.0.190.0000.00816.92
8.0.180.0000.00816.99
8.0.170.0040.00417.05
8.0.160.0000.00716.98
8.0.150.0000.00716.90
8.0.140.0070.00016.94
8.0.130.0000.00513.41
8.0.120.0060.00316.94
8.0.110.0050.00316.89
8.0.100.0040.00416.84
8.0.90.0040.00416.77
8.0.80.0090.00616.95
8.0.70.0040.00417.02
8.0.60.0000.00717.04
8.0.50.0000.00716.83
8.0.30.0070.01116.94
8.0.20.0170.00317.40
8.0.10.0040.00417.09
8.0.00.0090.00816.81
7.4.330.0050.00016.86
7.4.320.0030.00316.48
7.4.300.0000.00916.36
7.4.290.0000.00716.61
7.4.280.0030.00316.36
7.4.270.0000.00716.37
7.4.260.0030.00316.43
7.4.250.0030.00516.49
7.4.240.0030.00316.48
7.4.230.0050.00216.59
7.4.220.0090.01016.47
7.4.210.0040.01116.66
7.4.200.0030.00316.30
7.4.160.0000.01716.61
7.4.150.0070.01017.40
7.4.140.0100.01217.86
7.4.130.0050.01216.51
7.4.120.0090.00916.58
7.4.110.0100.00716.45
7.4.100.0090.01516.63
7.4.90.0170.00616.53
7.4.80.0060.01219.39
7.4.70.0100.00616.66
7.4.60.0070.01116.51
7.4.50.0070.00716.07
7.4.40.0090.01316.20
7.4.30.0110.01016.45
7.4.00.0040.01314.72
7.3.330.0060.00013.00
7.3.320.0050.00013.18
7.3.310.0030.00316.25
7.3.300.0070.00016.05
7.3.290.0080.00816.18
7.3.280.0090.00616.18
7.3.270.0100.00717.40
7.3.260.0210.00416.44
7.3.250.0100.00716.21
7.3.240.0090.00916.35
7.3.230.0100.00716.39
7.3.210.0100.00616.42
7.3.200.0060.00919.39
7.3.190.0070.01016.44
7.3.180.0060.01016.30
7.3.170.0140.00516.46
7.3.160.0120.00616.52
7.3.120.0060.01014.92
7.3.110.0110.00414.72
7.3.100.0070.01014.56
7.3.90.0060.00314.83
7.3.80.0000.01314.51
7.3.70.0070.00714.62
7.3.60.0140.00014.62
7.3.50.0040.00814.81
7.3.40.0000.01514.71
7.3.30.0060.00614.83
7.3.20.0060.00316.67
7.3.10.0030.00916.42
7.3.00.0140.00016.56
7.2.330.0120.00616.54
7.2.320.0100.00716.59
7.2.310.0150.00716.60
7.2.300.0090.01016.43
7.2.290.0110.01416.53
7.2.250.0080.01115.19
7.2.240.0090.00914.62
7.2.230.0030.01014.93
7.2.220.0100.00314.79
7.2.210.0000.01414.97
7.2.200.0030.01015.12
7.2.190.0030.01015.04
7.2.180.0000.01314.89
7.2.170.0000.01814.98
7.2.60.0070.00716.82
7.2.00.0060.00618.86
7.1.330.0060.00615.41
7.1.320.0070.00315.55
7.1.310.0060.00915.55
7.1.300.0040.01115.72
7.1.290.0000.01315.97
7.1.280.0000.01415.72
7.1.270.0110.00315.70
7.1.260.0080.00515.48
7.1.200.0060.00315.65
7.1.100.0000.01118.16
7.1.70.0020.00516.93
7.1.60.0070.01819.40
7.1.50.0070.00416.54
7.1.00.0100.07022.33
7.0.200.0140.00714.95
7.0.90.0470.07719.86
7.0.80.0630.07319.86
7.0.70.0430.08319.91
7.0.60.0530.07319.88
7.0.50.0630.08320.32
7.0.40.0200.06720.19
7.0.30.0130.04720.11
7.0.20.0100.05320.13
7.0.10.0070.05720.02
7.0.00.0100.07020.04
5.6.280.0000.03321.00
5.6.240.0070.07720.64
5.6.230.0100.08020.62
5.6.220.0070.04020.59
5.6.210.0100.08320.59
5.6.200.0170.07721.14
5.6.190.0070.05321.03
5.6.180.0030.09021.04
5.6.170.0130.08021.18
5.6.160.0030.05021.09
5.6.150.0100.08321.06
5.6.140.0200.07321.13
5.6.130.0100.06320.98
5.6.120.0100.08320.95
5.6.110.0030.06021.16
5.6.100.0170.04321.09
5.6.90.0100.08321.04
5.6.80.0070.07020.45
5.6.70.0130.06320.41
5.6.60.0100.07320.40
5.6.50.0130.04720.39
5.6.40.0170.07320.34
5.6.30.0100.07720.36
5.6.20.0100.08020.43
5.6.10.0230.06020.46
5.6.00.0070.07720.44
5.5.380.0030.08720.45
5.5.370.0100.04020.31
5.5.360.0100.04320.48
5.5.350.0070.08020.28
5.5.340.0200.06720.89
5.5.330.0070.06720.87
5.5.320.0130.07020.77
5.5.310.0200.06720.82
5.5.300.0100.04320.80
5.5.290.0070.07320.88
5.5.280.0100.08720.82
5.5.270.0130.08320.82
5.5.260.0100.07720.88
5.5.250.0030.07720.57
5.5.240.0100.07320.28
5.5.230.0070.04320.30
5.5.220.0100.05720.28
5.5.210.0070.08320.02
5.5.200.0130.06320.20
5.5.190.0130.07020.17
5.5.180.0070.04720.17
5.5.160.0170.06320.17
5.5.150.0100.07320.14
5.5.140.0100.08020.26
5.5.130.0130.04020.20
5.5.120.0030.04320.24
5.5.110.0070.08019.98
5.5.100.0100.04320.10
5.5.90.0100.07720.15
5.5.80.0100.06320.05
5.5.70.0030.06019.96
5.5.60.0030.07720.03
5.5.50.0170.06720.15
5.5.40.0030.05720.09
5.5.30.0070.07320.13
5.5.20.0000.05020.05
5.5.10.0130.05320.11
5.5.00.0270.06319.93

preferences:
49.5 ms | 401 KiB | 5 Q