3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'JsonData' => '[{"firstname":""},{"lastname":""},{"email":""},{"countryCode":""},{"phone":""},{"i_signup_password":""},{"i_signup_password_rep":""},{"email":""},{"i_signin_password":""},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"},{"form":"d-sys-login"},{"process":"e-signin"}]', 'otherdata' => 'otherdata', 'a number' => 8, ]; foreach ($_POST as $key => $value) { $decoded = json_decode($value, true); $newValue = json_last_error() ? $value : $decoded; if (is_array($decoded) && $newValue === array_values($newValue)) { $newValue = array_merge(...$newValue); } var_export($newValue); echo "\n"; }

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.1.20.0050.00317.64
8.1.10.0060.00617.45
8.1.00.0090.00017.45
8.0.150.0020.00516.90
8.0.140.0050.00216.88
8.0.130.0060.00013.30
8.0.120.0000.00816.84
8.0.110.0000.00816.97
8.0.100.0040.00416.88
8.0.90.0000.00716.91
8.0.80.0090.01216.88
8.0.70.0000.00816.80
8.0.60.0080.00016.86
8.0.50.0000.00716.90
8.0.30.0040.01216.83
8.0.20.0140.00417.09
8.0.10.0040.00416.86
8.0.00.0220.00316.59
7.4.270.0060.00016.61
7.4.260.0000.00513.27
7.4.250.0070.00016.57
7.4.240.0070.00016.54
7.4.230.0070.00016.50
7.4.220.0040.00316.60
7.4.210.0070.01216.63
7.4.200.0000.00816.69
7.4.130.0090.01116.45
7.4.120.0040.01616.61
7.4.110.0140.00316.62
7.4.100.0100.00716.40
7.4.90.0040.01416.24
7.4.80.0100.01016.32
7.4.70.0060.01216.58
7.4.60.0170.00016.55
7.4.50.0170.00016.08
7.4.40.0130.00316.58
7.4.30.0140.00316.36
7.4.20.0070.01116.33
7.4.10.0060.01316.57
7.4.00.0070.01016.39
7.3.330.0080.00016.16
7.3.320.0030.00313.13
7.3.310.0000.00716.29
7.3.300.0000.00716.24
7.3.290.0050.00916.28
7.3.280.0120.00916.31
7.3.260.0030.02116.57
7.3.230.0090.00916.45
7.3.210.0070.01016.19
7.3.200.0060.01216.41
7.3.190.0070.01016.49
7.3.180.0070.01016.61
7.3.170.0130.00316.52
7.3.160.0100.00616.25
7.3.150.0060.01216.19
7.3.140.0150.00316.44
7.3.130.0120.00616.44
7.3.120.0120.00816.57
7.3.110.0100.00716.36
7.3.100.0140.00416.27
7.3.90.0090.00916.67
7.3.80.0030.01316.27
7.3.70.0110.00516.45
7.3.60.0030.01716.44
7.3.50.0080.01416.47
7.3.40.0160.00016.34
7.3.30.0130.00316.59
7.3.20.0330.00716.28
7.3.10.0140.00316.41
7.3.00.0120.00616.27
7.2.330.0090.00916.32
7.2.320.0040.01416.52
7.2.310.0130.00316.74
7.2.300.0090.00916.85
7.2.290.0030.01416.66
7.2.280.0110.00616.50
7.2.270.0040.01716.81
7.2.260.0060.01216.48
7.2.250.0070.01116.52
7.2.240.0110.00716.74
7.2.230.0140.00816.56
7.2.220.0050.01416.74
7.2.210.0100.00716.48
7.2.200.0090.00916.86
7.2.190.0140.00416.52
7.2.180.0030.01316.65
7.2.170.0140.00316.76
7.2.160.0150.01216.69
7.2.150.0030.01616.68
7.2.140.0150.00416.66
7.2.130.0110.00816.67
7.2.120.0070.01116.55
7.2.110.0110.00716.80
7.2.100.0040.01416.58
7.2.90.0400.00716.52
7.2.80.0090.00916.65
7.2.70.0060.01216.56
7.2.60.0100.01616.51
7.2.50.0160.00416.66
7.2.40.0130.01016.56
7.2.30.0150.00416.78
7.2.20.0060.01216.59
7.2.10.0120.00616.74
7.2.00.0120.00616.68

preferences:
14.56 ms | 455 KiB | 5 Q