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( $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.70.0030.01716.63
8.3.60.0070.00716.38
8.3.50.0110.00921.02
8.3.40.0120.00318.88
8.3.30.0120.00318.67
8.3.20.0070.00020.13
8.3.10.0040.00423.48
8.3.00.0080.00323.53
8.2.190.0110.00416.82
8.2.180.0030.01416.72
8.2.170.0120.00622.96
8.2.160.0110.00820.43
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0030.00520.79
8.2.120.0070.00026.35
8.2.110.0110.00022.25
8.2.100.0120.00017.93
8.2.90.0040.00419.29
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0000.00818.05
8.2.50.0060.00318.09
8.2.40.0040.00422.27
8.2.30.0030.00519.50
8.2.20.0040.00417.68
8.2.10.0040.00418.00
8.2.00.0000.00718.19
8.1.280.0080.00825.92
8.1.270.0130.00322.02
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00420.68
8.1.230.0000.01117.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0060.00316.98
8.1.180.0000.00818.10
8.1.170.0060.00318.57
8.1.160.0000.00720.64
8.1.150.0000.00720.76
8.1.140.0030.00519.64
8.1.130.0000.00717.58
8.1.120.0040.00717.44
8.1.110.0000.00817.52
8.1.100.0050.00217.45
8.1.90.0000.00817.40
8.1.80.0040.00417.50
8.1.70.0000.00717.38
8.1.60.0040.00417.54
8.1.50.0000.00817.46
8.1.40.0050.00217.43
8.1.30.0000.00817.61
8.1.20.0050.00217.64
8.1.10.0040.00417.54
8.1.00.0030.00617.48
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0000.00718.45
8.0.270.0070.00017.23
8.0.260.0000.00817.27
8.0.250.0030.00317.00
8.0.240.0030.00316.92
8.0.230.0040.00416.90
8.0.220.0050.00516.84
8.0.210.0000.00816.93
8.0.200.0000.00817.09
8.0.190.0050.00316.96
8.0.180.0000.00716.98
8.0.170.0040.00416.89
8.0.160.0040.00417.00
8.0.150.0070.00016.90
8.0.140.0070.00016.91
8.0.130.0000.00513.43
8.0.120.0000.00816.94
8.0.110.0070.00016.91
8.0.100.0000.00716.93
8.0.90.0050.00217.03
8.0.80.0030.01216.96
8.0.70.0000.00717.03
8.0.60.0030.00517.02
8.0.50.0030.00317.00
8.0.30.0070.00917.07
8.0.20.0090.01017.40
8.0.10.0040.00417.05
8.0.00.0100.00716.69
7.4.330.0000.00516.76
7.4.320.0070.00016.60
7.4.300.0000.00816.58
7.4.290.0030.00316.61
7.4.280.0000.00816.59
7.4.270.0000.00716.51
7.4.260.0040.00416.39
7.4.250.0070.00016.49
7.4.240.0040.00416.50
7.4.230.0000.00716.35
7.4.220.0110.01516.55
7.4.210.0050.00916.41
7.4.200.0000.00816.50
7.4.160.0090.00616.55
7.4.150.0040.01417.40
7.4.140.0190.00917.86
7.4.130.0110.01016.55
7.4.120.0050.01716.45
7.4.110.0070.01016.54
7.4.100.0060.01216.54
7.4.90.0090.00916.52
7.4.80.0110.01119.39
7.4.70.0170.00016.45
7.4.60.0090.00916.39
7.4.50.0110.00416.64
7.4.40.0160.00616.64
7.4.30.0160.01116.41
7.4.10.0090.00615.21
7.4.00.0090.00814.92
7.3.330.0000.00613.03
7.3.320.0000.00512.96
7.3.310.0000.00616.01
7.3.300.0000.00716.18
7.3.290.0080.00916.17
7.3.280.0080.00916.19
7.3.270.0050.01417.40
7.3.260.0090.00916.46
7.3.250.0080.00916.27
7.3.240.0090.00916.38
7.3.230.0090.00916.42
7.3.210.0140.00316.22
7.3.200.0160.00619.39
7.3.190.0040.01216.40
7.3.180.0100.00716.28
7.3.170.0090.01216.27
7.3.160.0100.00816.29
7.3.130.0110.00714.98
7.3.120.0080.00914.85
7.3.110.0090.00614.79
7.3.100.0070.00714.72
7.3.90.0070.00714.76
7.3.80.0050.00914.71
7.3.70.0010.00814.49
7.3.60.0050.00814.67
7.3.50.0040.00814.56
7.3.40.0080.00614.54
7.3.30.0060.00514.79
7.3.20.0090.00616.46
7.3.10.0060.00716.63
7.3.00.0030.00916.57
7.2.330.0090.00816.66
7.2.320.0080.00816.35
7.2.310.0060.01616.33
7.2.300.0110.00616.27
7.2.290.0060.01216.49
7.2.260.0040.01414.88
7.2.250.0090.01014.87
7.2.240.0040.01114.95
7.2.230.0090.00514.83
7.2.220.0060.00914.92
7.2.210.0030.01014.88
7.2.200.0010.01014.87
7.2.190.0060.00814.94
7.2.180.0080.00514.84
7.2.170.0070.00814.89
7.2.160.0060.00614.95
7.2.150.0090.00316.76
7.2.140.0060.01016.66
7.2.130.0070.00816.76
7.2.120.0070.00716.92
7.2.110.0070.00516.76
7.2.100.0050.00916.70
7.2.90.0070.00516.74
7.2.80.0050.00916.72
7.2.70.0060.00516.56
7.2.60.0080.00616.65
7.2.50.0060.00416.82
7.2.40.0040.00916.82
7.2.30.0070.00716.83
7.2.20.0070.00716.64
7.2.10.0070.01016.88
7.2.00.0080.00617.53
7.1.330.0110.00315.69
7.1.320.0060.00515.70
7.1.310.0050.00715.81
7.1.300.0090.00515.66
7.1.290.0050.00715.71
7.1.280.0050.00715.65
7.1.270.0070.00715.38
7.1.260.0080.00415.72
7.1.250.0070.00715.63
7.1.240.0090.00615.70
7.1.230.0080.00415.81
7.1.220.0080.00415.77
7.1.210.0090.00615.77
7.1.200.0020.01115.55
7.1.190.0030.00915.75
7.1.180.0060.00815.75
7.1.170.0000.01315.84
7.1.160.0030.01015.46
7.1.150.0060.00615.71
7.1.140.0040.00815.64
7.1.130.0040.01115.63
7.1.120.0070.00715.52
7.1.110.0000.01715.68
7.1.100.0020.01316.74
7.1.90.0040.00415.88
7.1.80.0070.00415.44
7.1.70.0030.00716.21
7.1.60.0090.00717.39
7.1.50.0050.00716.25
7.1.40.0060.00615.59
7.1.30.0060.00615.53
7.1.20.0030.00715.89
7.1.10.0140.00415.48
7.1.00.0090.03519.15
7.0.330.0090.00315.31
7.0.320.0080.00315.36
7.0.310.0030.00615.34
7.0.300.0090.00315.34
7.0.290.0030.01015.31
7.0.280.0080.00015.57
7.0.270.0060.00315.09
7.0.260.0030.00615.18
7.0.250.0120.00015.21
7.0.240.0030.00915.45
7.0.230.0030.01315.23
7.0.220.0080.00415.11
7.0.210.0030.01015.50
7.0.200.0040.00715.09
7.0.190.0000.01215.30
7.0.180.0090.00615.29
7.0.170.0060.00915.17
7.0.160.0060.00615.46
7.0.150.0070.00715.36
7.0.140.0060.00315.40
7.0.130.0090.00615.25
7.0.120.0080.00415.25
7.0.110.0060.00315.43
7.0.100.0100.00315.19
7.0.90.0120.04017.65
7.0.80.0030.04617.48
7.0.70.0060.02517.57
7.0.60.0070.02517.65
7.0.50.0020.05017.84
7.0.40.0060.04416.89
7.0.30.0080.04016.77
7.0.20.0100.03316.61
7.0.10.0060.02316.80
7.0.00.0100.04416.67
5.6.400.0000.01214.55
5.6.390.0080.00414.50
5.6.380.0080.00014.11
5.6.370.0030.00714.34
5.6.360.0030.01014.29
5.6.350.0080.00614.25
5.6.340.0080.00414.48
5.6.330.0040.00714.06
5.6.320.0040.00814.39
5.6.310.0060.00914.48
5.6.300.0000.01214.26
5.6.290.0030.00714.23
5.6.280.0040.02017.54
5.6.270.0000.00814.27
5.6.260.0100.00614.69
5.6.250.0000.01014.45
5.6.240.0090.04017.43
5.6.230.0070.04317.28
5.6.220.0130.03217.52
5.6.210.0050.04317.48
5.6.200.0070.02517.60
5.6.190.0000.04817.70
5.6.180.0110.03817.65
5.6.170.0060.02817.75
5.6.160.0060.04717.87
5.6.150.0090.03917.58
5.6.140.0050.04817.53
5.6.130.0070.02717.57
5.6.120.0090.04117.65
5.6.110.0080.04517.74
5.6.100.0080.04317.75
5.6.90.0100.03517.62
5.6.80.0070.04817.26
5.6.70.0090.04017.35
5.6.60.0070.03117.35
5.6.50.0070.04217.18
5.6.40.0080.03817.20
5.6.30.0100.02317.37
5.6.20.0120.02917.32
5.6.10.0090.02817.23
5.6.00.0070.02817.26
5.5.380.0080.03817.29
5.5.370.0130.04017.37
5.5.360.0050.02717.44
5.5.350.0050.02617.40
5.5.340.0050.02717.49
5.5.330.0120.03517.59
5.5.320.0120.03517.73
5.5.310.0070.02317.42
5.5.300.0050.04317.52
5.5.290.0050.04417.57
5.5.280.0060.04217.39
5.5.270.0050.03717.47
5.5.260.0030.04817.61
5.5.250.0080.03217.30
5.5.240.0080.04217.14
5.5.230.0130.03017.13
5.5.220.0080.03617.03
5.5.210.0050.04117.12
5.5.200.0060.02617.05
5.5.190.0020.04617.00
5.5.180.0080.03817.14
5.5.170.0070.00714.12
5.5.160.0020.03717.13
5.5.150.0050.04017.28
5.5.140.0060.04517.31
5.5.130.0030.04217.22
5.5.120.0110.03717.03
5.5.110.0090.03517.25
5.5.100.0030.04816.96
5.5.90.0080.03916.89
5.5.80.0070.04417.14
5.5.70.0110.03917.17
5.5.60.0080.03817.14
5.5.50.0050.03417.20
5.5.40.0120.03917.13
5.5.30.0030.04516.96
5.5.20.0070.03217.03
5.5.10.0120.04016.89
5.5.00.0090.04217.11

preferences:
60.09 ms | 401 KiB | 5 Q