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)['last_name']; $data['p_no'] = json_decode($phone_number, TRUE)['phone_number']; 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.0140.00316.63
8.3.60.0040.01416.88
8.3.50.0120.00522.92
8.3.40.0120.00318.63
8.3.30.0100.00718.85
8.3.20.0040.00420.38
8.3.10.0050.00323.54
8.3.00.0080.00019.38
8.2.180.0070.00716.75
8.2.170.0070.01422.96
8.2.160.0100.00320.44
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.16
8.2.110.0030.00620.41
8.2.100.0110.00018.09
8.2.90.0040.00419.07
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0040.00818.07
8.2.40.0100.00018.09
8.2.30.0000.00718.10
8.2.20.0000.00717.66
8.2.10.0070.00017.91
8.2.00.0070.00017.73
8.1.280.0150.00625.92
8.1.270.0090.00923.96
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00323.98
8.1.230.0100.00019.04
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0030.00518.59
8.1.160.0080.00021.93
8.1.150.0000.00718.87
8.1.140.0050.00317.36
8.1.130.0000.00717.76
8.1.120.0040.00417.25
8.1.110.0040.00417.39
8.1.100.0040.00417.38
8.1.90.0040.00417.35
8.1.80.0000.00817.31
8.1.70.0080.00017.30
8.1.60.0060.00317.51
8.1.50.0000.00817.48
8.1.40.0030.00617.32
8.1.30.0000.00817.39
8.1.20.0000.00717.54
8.1.10.0000.00717.42
8.1.00.0040.00417.39
8.0.300.0060.00318.77
8.0.290.0050.00216.63
8.0.280.0070.00018.30
8.0.270.0000.00717.14
8.0.260.0070.00017.18
8.0.250.0030.00316.84
8.0.240.0040.00416.89
8.0.230.0040.00416.93
8.0.220.0000.00716.90
8.0.210.0040.00416.88
8.0.200.0060.00016.82
8.0.190.0000.00716.84
8.0.180.0050.00216.84
8.0.170.0040.00416.92
8.0.160.0040.00416.85
8.0.150.0000.00716.73
8.0.140.0040.00416.72
8.0.130.0000.00913.30
8.0.120.0000.00816.84
8.0.110.0000.00816.81
8.0.100.0000.00716.75
8.0.90.0000.00717.00
8.0.80.0130.00616.79
8.0.70.0050.00316.75
8.0.60.0000.00716.95
8.0.50.0050.00316.94
8.0.30.0060.01616.99
8.0.20.0100.00917.40
8.0.10.0000.00717.02
8.0.00.0070.01216.80
7.4.330.0020.00215.03
7.4.320.0000.00816.50
7.4.300.0040.00416.44
7.4.290.0060.00016.53
7.4.280.0040.00416.37
7.4.270.0000.00716.30
7.4.260.0000.00716.55
7.4.250.0040.00416.45
7.4.240.0050.00316.43
7.4.230.0030.00316.45
7.4.220.0090.00916.38
7.4.210.0100.01016.55
7.4.200.0050.00316.43
7.4.160.0150.00616.28
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0100.00616.46
7.4.120.0130.00616.48
7.4.110.0070.01116.39
7.4.100.0070.01416.67
7.4.90.0040.01416.50
7.4.80.0030.01419.39
7.4.70.0100.00716.46
7.4.60.0070.01016.40
7.4.50.0000.00516.35
7.4.40.0060.01316.68
7.4.30.0060.01116.58
7.4.00.0000.01614.97
7.3.330.0000.00712.93
7.3.320.0000.00513.09
7.3.310.0070.00016.20
7.3.300.0000.00616.08
7.3.290.0110.00716.25
7.3.280.0080.01016.20
7.3.270.0100.00717.40
7.3.260.0140.00716.62
7.3.250.0130.00316.21
7.3.240.0130.00716.55
7.3.230.0030.01416.39
7.3.210.0040.01516.13
7.3.200.0120.00419.39
7.3.190.0110.01116.57
7.3.180.0090.00916.40
7.3.170.0060.00916.47
7.3.160.0110.00816.34
7.2.330.0060.01216.66
7.2.320.0130.00416.49
7.2.310.0070.01016.42
7.2.300.0030.01316.29
7.2.290.0000.02216.59
7.2.60.0060.00616.74
7.2.00.0300.01019.34
7.1.200.0030.00915.89
7.1.100.0040.01118.23
7.1.70.0040.00417.30
7.1.60.0040.01819.46
7.1.50.0070.00716.61
7.1.00.0000.08022.33
7.0.200.0040.00416.55
7.0.140.0000.07722.00
7.0.60.0170.07719.80
7.0.50.0070.08317.81
7.0.40.0070.05720.21
7.0.30.0470.07020.04
7.0.20.0200.08320.12
7.0.10.0130.06320.30
7.0.00.0100.07320.19
5.6.280.0100.06720.99
5.6.210.0030.08720.50
5.6.200.0070.05018.12
5.6.190.0070.04720.61
5.6.180.0300.04720.39
5.6.170.0300.03720.38
5.6.160.0030.04320.38
5.6.150.0070.08318.22
5.6.140.0030.08718.21
5.6.130.0070.08018.13
5.6.120.0000.05721.09
5.6.110.0070.07021.11
5.6.100.0000.04720.97
5.6.90.0170.07020.95
5.6.80.0130.07320.48
5.5.350.0300.07020.42
5.5.340.0130.04017.89
5.5.330.0100.03720.25
5.5.320.0030.04720.26
5.5.310.0300.04720.29
5.5.300.0100.07017.89
5.5.290.0130.07317.98
5.5.280.0130.03720.77
5.5.270.0100.06720.71
5.5.260.0100.08020.87
5.5.250.0130.06020.46
5.5.240.0270.07020.14
5.4.450.0430.05019.11
5.4.440.0330.05719.23
5.4.430.0470.04319.42
5.4.420.0330.04019.40
5.4.410.0430.04319.41
5.4.400.0230.03018.89
5.4.390.0470.03018.77
5.4.380.0400.07318.67
5.4.370.0500.05018.68
5.4.360.0400.04018.46
5.4.350.0270.06018.82
5.4.340.0400.04718.57
5.4.320.0080.04112.46
5.4.310.0060.03812.45
5.4.300.0070.03412.46
5.4.290.0070.04712.45
5.4.280.0060.03612.35
5.4.270.0080.03712.35
5.4.260.0060.04012.35
5.4.250.0090.04312.35
5.4.240.0100.04312.35
5.4.230.0080.03812.34
5.4.220.0070.03812.34
5.4.210.0060.03912.34
5.4.200.0100.04012.34
5.4.190.0220.07712.34
5.4.180.0140.06312.34
5.4.170.0100.06112.35
5.4.160.0060.04212.34
5.4.150.0090.04812.34
5.4.140.0070.05112.03
5.4.130.0070.03712.02
5.4.120.0070.04311.97
5.4.110.0100.05011.97
5.4.100.0070.03811.96
5.4.90.0060.03811.97
5.4.80.0070.05611.96
5.4.70.0040.04111.96
5.4.60.0060.03811.96
5.4.50.0040.03711.96
5.4.40.0060.04011.95
5.4.30.0060.03511.95
5.4.20.0040.03811.95
5.4.10.0090.03311.95
5.4.00.0080.03411.44
5.3.290.0040.04012.80
5.3.280.0070.04012.71
5.3.270.0050.04112.72
5.3.260.0060.04312.72
5.3.250.0080.03712.72
5.3.240.0090.04012.72
5.3.230.0070.04412.71
5.3.220.0040.03912.68
5.3.210.0120.05012.68
5.3.200.0030.04012.68
5.3.190.0080.03512.68
5.3.180.0110.03612.67
5.3.170.0070.03312.67
5.3.160.0110.03212.68
5.3.150.0090.03312.68
5.3.140.0120.03512.66
5.3.130.0060.04012.66
5.3.120.0070.03912.66
5.3.110.0090.04612.66
5.3.100.0070.03512.11
5.3.90.0060.04012.09
5.3.80.0070.03612.07
5.3.70.0070.03812.08
5.3.60.0060.03612.07
5.3.50.0070.03512.00
5.3.40.0040.03812.00
5.3.30.0040.04011.95
5.3.20.0060.03411.73
5.3.10.0090.03211.70
5.3.00.0040.04011.69
5.2.170.0070.0339.19
5.2.160.0080.0349.19
5.2.150.0050.0299.18
5.2.140.0040.0309.18
5.2.130.0060.0279.14
5.2.120.0060.0269.14
5.2.110.0050.0329.14
5.2.100.0040.0299.14
5.2.90.0050.0289.14
5.2.80.0050.0349.14
5.2.70.0030.0379.14
5.2.60.0060.0349.09
5.2.50.0090.0289.07
5.2.40.0060.0349.04
5.2.30.0050.0299.01
5.2.20.0040.0309.00
5.2.10.0070.0258.93
5.2.00.0040.0298.79
5.1.60.0040.0248.07
5.1.50.0050.0238.07
5.1.40.0040.0248.05
5.1.30.0060.0258.40
5.1.20.0050.0288.42
5.1.10.0050.0268.14
5.1.00.0030.0268.14
5.0.50.0050.0226.62
5.0.40.0020.0206.48
5.0.30.0050.0376.29
5.0.20.0020.0206.27
5.0.10.0010.0226.24
5.0.00.0040.0306.23
4.4.90.0030.0154.78
4.4.80.0020.0174.76
4.4.70.0010.0174.75
4.4.60.0020.0164.75
4.4.50.0020.0174.77
4.4.40.0050.0224.71
4.4.30.0030.0164.76
4.4.20.0040.0154.84
4.4.10.0060.0144.85
4.4.00.0070.0234.76
4.3.110.0020.0174.67
4.3.100.0030.0154.66
4.3.90.0040.0194.63
4.3.80.0040.0244.59
4.3.70.0040.0164.63
4.3.60.0040.0224.63
4.3.50.0050.0194.62
4.3.40.0050.0294.54
4.3.30.0020.0163.28
4.3.20.0030.0143.26
4.3.10.0010.0163.23
4.3.00.0030.01715.68

preferences:
34.07 ms | 401 KiB | 5 Q