3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('serialize_precision', 60); // ini_set('serialize_precision', -1); echo 'serialize_precision: ', ini_get('serialize_precision'), PHP_EOL; $points = [ [45.29077, 5.63361], [45.29083, 5.63384] ]; $feature = [ "type" => "Feature", "geometry" => [ "type" => "LineString", "coordinates" => array_map('array_reverse', $points) ], "properties" => [] ]; $json_parcours = [ "type" => "FeatureCollection", "features" => [$feature] ]; $jsonData = json_encode($json_parcours, JSON_UNESCAPED_UNICODE); echo 'jsonData = ', $jsonData, PHP_EOL;

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.5.80.0110.00816.91
8.5.70.0120.00416.80
8.5.60.0140.00416.91
8.5.50.0110.00618.29
8.5.30.0110.00619.48
8.5.20.0100.00720.13
8.5.10.0130.00616.77
8.5.00.0160.00619.95
8.4.230.0080.00119.64
8.4.220.0060.00419.63
8.4.210.0120.01119.52
8.4.180.0120.01019.79
8.4.170.0140.00822.03
8.4.160.0120.01022.57
8.4.150.0100.00316.88
8.4.140.0130.00917.57
8.4.130.0030.00817.89
8.4.120.0120.00820.57
8.4.110.0080.00618.86
8.4.100.0050.00417.86
8.4.90.0040.00517.51
8.4.80.0100.01017.76
8.4.70.0110.00917.69
8.4.60.0090.01117.70
8.4.50.0110.00918.90
8.4.40.0160.00319.00
8.4.30.0060.00318.79
8.4.20.0070.01421.34
8.4.10.0060.00319.39
8.3.320.0050.00518.51
8.3.310.0110.00918.34
8.3.300.0160.00718.39
8.3.290.0130.00820.71
8.3.280.0130.00818.31
8.3.270.0120.00816.54
8.3.260.0120.00816.50
8.3.250.0070.01019.01
8.3.240.0130.00716.46
8.3.230.0060.00416.42
8.3.220.0090.00917.29
8.3.210.0120.00616.56
8.3.200.0120.00716.80
8.3.190.0070.00817.23
8.3.180.0090.00918.95
8.3.170.0130.00617.31
8.3.160.0070.01120.89
8.3.150.0110.00817.10
8.3.140.0000.00816.56
8.3.130.0030.00616.65
8.3.120.0070.00716.57
8.3.50.0090.00016.52
8.2.320.0140.00617.99
8.2.310.0110.00917.99
8.2.300.0090.01320.26
8.2.290.0090.00520.31
8.2.280.0100.00616.80
8.2.270.0120.00616.58
8.2.260.0080.00017.23
8.2.250.0060.00318.29
8.2.240.0240.00516.69
8.1.340.0130.00721.96
8.1.330.0100.01016.85
8.1.320.0110.00817.89
8.1.310.0130.00616.74

preferences:
68.2 ms | 776 KiB | 5 Q