3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first_name = '{"first_name" : "Parag"}'; $last_name = '{"last_name" : "Tyagi"}'; $phone_number = '{"phone_number" : "9999999999"}'; $data['f_name'] = json_decode($first_name, TRUE)['first_name']; $data['l_name'] = json_decode($last_name, TRUE); $data['p_no'] = json_decode($phone_number, TRUE); print_r($data);

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.0100.00716.58
8.3.60.0130.00616.63
8.3.50.0120.00422.88
8.3.40.0120.00318.54
8.3.30.0110.00719.22
8.3.20.0000.00720.16
8.3.10.0000.00823.47
8.3.00.0040.00419.25
8.2.180.0120.00318.18
8.2.170.0120.00622.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.02
8.2.110.0070.00320.51
8.2.100.0100.00018.22
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0000.00917.92
8.2.50.0040.00418.07
8.2.40.0040.00818.22
8.2.30.0000.00718.13
8.2.20.0050.00317.80
8.2.10.0040.00417.93
8.2.00.0000.00817.79
8.1.280.0070.00725.92
8.1.270.0120.00022.03
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.73
8.1.230.0040.00717.95
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0050.00317.10
8.1.180.0040.00419.01
8.1.170.0080.00018.59
8.1.160.0030.00521.95
8.1.150.0000.00718.83
8.1.140.0000.00717.26
8.1.130.0000.00617.87
8.1.120.0000.00717.41
8.1.110.0030.00317.29
8.1.100.0040.00417.43
8.1.90.0030.00317.29
8.1.80.0000.00717.36
8.1.70.0030.00517.31
8.1.60.0050.00217.51
8.1.50.0050.00517.36
8.1.40.0030.00617.34
8.1.30.0000.00817.53
8.1.20.0060.00317.59
8.1.10.0070.00017.56
8.1.00.0020.00517.33
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.45
8.0.270.0070.00017.11
8.0.260.0000.00717.24
8.0.250.0000.00616.86
8.0.240.0030.00316.91
8.0.230.0000.00816.85
8.0.220.0050.00216.70
8.0.210.0050.00316.80
8.0.200.0060.00016.88
8.0.190.0070.00016.91
8.0.180.0040.00416.86
8.0.170.0040.00416.87
8.0.160.0030.00316.91
8.0.150.0070.00016.82
8.0.140.0050.00216.74
8.0.130.0000.00713.25
8.0.120.0000.00716.73
8.0.110.0000.00816.80
8.0.100.0040.00416.77
8.0.90.0030.00316.70
8.0.80.0030.01216.77
8.0.70.0000.00816.86
8.0.60.0050.00216.85
8.0.50.0040.00416.66
8.0.30.0130.00917.18
8.0.20.0070.01517.40
8.0.10.0040.00416.79
8.0.00.0070.01016.83
7.4.330.0020.00215.05
7.4.320.0040.00416.39
7.4.300.0000.00816.57
7.4.290.0030.00316.55
7.4.280.0030.00316.34
7.4.270.0000.00616.35
7.4.260.0030.00316.43
7.4.250.0000.00816.30
7.4.240.0010.00716.50
7.4.230.0030.00316.46
7.4.220.0070.01016.51
7.4.210.0090.00916.42
7.4.200.0030.00316.52
7.4.160.0050.01116.42
7.4.150.0030.01717.40
7.4.140.0090.00817.86
7.4.130.0070.01016.55
7.4.120.0080.01116.46
7.4.110.0030.01316.38
7.4.100.0070.01116.36
7.4.90.0140.00316.38
7.4.80.0140.00919.39
7.4.70.0080.01116.48
7.4.60.0100.00616.45
7.4.50.0000.00416.25
7.4.40.0070.01016.56
7.4.30.0100.00616.51
7.4.00.0000.01714.95
7.3.330.0000.00713.06
7.3.320.0000.00513.04
7.3.310.0040.00416.16
7.3.300.0030.00316.18
7.3.290.0140.00716.20
7.3.280.0090.00816.23
7.3.270.0070.01117.40
7.3.260.0070.01316.39
7.3.250.0100.00816.38
7.3.240.0080.00816.36
7.3.230.0140.00316.45
7.3.210.0100.00716.46
7.3.200.0100.00719.39
7.3.190.0100.01316.47
7.3.180.0090.00616.30
7.3.170.0070.00716.27
7.3.160.0030.01216.45
7.3.10.0080.00716.61
7.3.00.0050.00716.79
7.2.330.0130.00616.67
7.2.320.0110.01116.55
7.2.310.0140.00416.48
7.2.300.0070.01016.63
7.2.290.0130.01016.64
7.2.130.0140.00316.93
7.2.120.0080.00616.73
7.2.110.0090.00516.83
7.2.100.0060.01016.71
7.2.90.0080.00516.80
7.2.80.0120.00116.78
7.2.70.0030.01116.68
7.2.60.0060.00716.66
7.2.50.0070.00616.73
7.2.40.0070.00916.90
7.2.30.0030.01016.81
7.2.20.0090.00516.86
7.2.10.0080.00616.91
7.2.00.0060.00817.56
7.1.250.0060.00615.96
7.1.200.0060.00615.52
7.1.100.0080.00318.25
7.1.70.0030.00617.03
7.1.60.0040.01919.46
7.1.50.0030.01716.59
7.1.00.0070.07322.32
7.0.200.0000.00716.79
7.0.140.0000.07722.09
7.0.60.0170.07320.02
7.0.50.0100.05717.90
7.0.40.0070.08320.35
7.0.30.0200.07020.33
7.0.20.0370.05020.20
7.0.10.0030.09320.16
7.0.00.0170.08020.29
5.6.280.0130.06320.88
5.6.210.0130.04720.46
5.6.200.0000.05018.09
5.6.190.0130.06320.41
5.6.180.0230.08720.56
5.6.170.0170.05320.71
5.6.160.0030.04320.32
5.6.150.0070.08318.21
5.6.140.0070.05318.22
5.6.130.0100.08018.21
5.6.120.0070.05321.02
5.6.110.0070.08020.96
5.6.100.0000.04721.09
5.6.90.0130.08020.96
5.6.80.0030.07320.38
5.5.350.0270.07320.43
5.5.340.0000.04717.89
5.5.330.0030.04020.27
5.5.320.0370.06720.17
5.5.310.0330.04020.50
5.5.300.0070.08317.91
5.5.290.0030.05718.03
5.5.280.0130.03320.68
5.5.270.0070.04320.88
5.5.260.0030.04020.78
5.5.250.0070.08320.54
5.5.240.0070.07320.15
5.4.450.0470.04719.25
5.4.440.0430.05019.45
5.4.430.0900.04019.40
5.4.420.0500.04319.56
5.4.410.0630.04019.29
5.4.400.0470.03018.84
5.4.390.0470.04718.89
5.4.380.0300.06018.71
5.4.370.0330.04718.50
5.4.360.0400.04718.66
5.4.350.0270.06018.59
5.4.340.0370.05718.71
5.4.320.0050.03812.46
5.4.310.0030.04212.45
5.4.300.0100.03212.46
5.4.290.0060.04312.45
5.4.280.0030.03812.35
5.4.270.0040.03912.35
5.4.260.0030.04512.35
5.4.250.0070.04512.35
5.4.240.0050.03612.35
5.4.230.0080.04212.34
5.4.220.0060.04212.34
5.4.210.0080.03712.34
5.4.200.0070.03912.34
5.4.190.0070.03412.34
5.4.180.0050.03712.34
5.4.170.0090.03412.35
5.4.160.0070.03712.34
5.4.150.0080.03412.34
5.4.140.0070.03812.02
5.4.130.0100.04812.01
5.4.120.0050.03711.97
5.4.110.0050.03611.97
5.4.100.0040.03711.96
5.4.90.0080.03711.97
5.4.80.0080.04911.96
5.4.70.0050.03511.96
5.4.60.0080.03311.96
5.4.50.0050.03611.96
5.4.40.0070.03311.95
5.4.30.0050.03611.95
5.4.20.0080.03311.95
5.4.10.0080.03611.95
5.4.00.0060.04111.44
5.3.290.0070.03812.80
5.3.280.0040.04612.71
5.3.270.0080.03612.72
5.3.260.0100.03912.72
5.3.250.0090.03412.72
5.3.240.0070.03612.71
5.3.230.0070.03612.71
5.3.220.0080.03612.68
5.3.210.0100.04512.68
5.3.200.0080.04212.68
5.3.190.0070.03712.68
5.3.180.0080.03412.67
5.3.170.0100.04112.67
5.3.160.0080.03712.67
5.3.150.0070.03512.68
5.3.140.0100.03112.66
5.3.130.0060.04312.66
5.3.120.0070.03812.66
5.3.110.0060.03812.66
5.3.100.0050.04012.12
5.3.90.0040.03712.08
5.3.80.0070.03512.08
5.3.70.0050.04212.08
5.3.60.0050.03712.06
5.3.50.0080.03412.00
5.3.40.0060.03712.00
5.3.30.0100.03611.95
5.3.20.0070.03311.72
5.3.10.0040.03811.70
5.3.00.0070.04111.69
5.2.170.0060.0299.18
5.2.160.0040.0299.18
5.2.150.0060.0289.18
5.2.140.0030.0319.18
5.2.130.0040.0299.14
5.2.120.0050.0279.14
5.2.110.0050.0299.15
5.2.100.0050.0369.14
5.2.90.0050.0329.14
5.2.80.0060.0289.14
5.2.70.0030.0319.14
5.2.60.0020.0339.09
5.2.50.0070.0289.06
5.2.40.0090.0279.04
5.2.30.0060.0349.01
5.2.20.0060.0269.00
5.2.10.0070.0268.93
5.2.00.0080.0268.79
5.1.60.0050.0258.07
5.1.50.0030.0258.06
5.1.40.0080.0328.05
5.1.30.0040.0338.39
5.1.20.0080.0258.42
5.1.10.0060.0358.14
5.1.00.0110.0228.14
5.0.50.0030.0216.62
5.0.40.0010.0226.48
5.0.30.0050.0386.30
5.0.20.0030.0226.27
5.0.10.0030.0196.24
5.0.00.0020.0316.23
4.4.90.0030.0144.78
4.4.80.0000.0184.75
4.4.70.0030.0154.76
4.4.60.0030.0184.75
4.4.50.0050.0124.77
4.4.40.0030.0244.71
4.4.30.0030.0144.76
4.4.20.0020.0224.85
4.4.10.0050.0134.84
4.4.00.0010.0264.76
4.3.110.0050.0174.67
4.3.100.0020.0144.66
4.3.90.0050.0114.64
4.3.80.0010.0254.58
4.3.70.0060.0174.63
4.3.60.0050.0184.63
4.3.50.0040.0134.63
4.3.40.0030.0244.53
4.3.30.0020.0163.29
4.3.20.0010.0163.26
4.3.10.0050.0123.23
4.3.00.0070.01315.68

preferences:
35.31 ms | 401 KiB | 5 Q