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"}'; $form_data['firstname'] = json_decode($first_name, TRUE)['first_name']; $form_data['lastname'] = json_decode($last_name, TRUE)['last_name']; $form_data['number'] = json_decode($phone_number, TRUE)['phone_number']; print_r($form_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.0160.00616.24
8.3.50.0190.01022.91
8.3.40.0070.00718.67
8.3.30.0060.01219.22
8.3.20.0000.00820.16
8.3.10.0040.00423.52
8.3.00.0040.00419.38
8.2.180.0070.00718.17
8.2.170.0150.00022.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00719.79
8.2.110.0080.00020.11
8.2.100.0030.00718.03
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0030.00618.04
8.2.50.0000.00818.07
8.2.40.0070.00018.05
8.2.30.0040.00418.01
8.2.20.0030.00517.79
8.2.10.0040.00417.96
8.2.00.0040.00417.77
8.1.280.0150.00025.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.09
8.1.230.0080.00419.06
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0080.00017.12
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0070.00021.91
8.1.150.0000.00718.82
8.1.140.0040.00417.42
8.1.130.0080.00017.82
8.1.120.0080.00017.39
8.1.110.0040.00417.34
8.1.100.0050.00317.38
8.1.90.0040.00417.29
8.1.80.0070.00017.40
8.1.70.0030.00317.35
8.1.60.0050.00517.51
8.1.50.0080.00017.50
8.1.40.0100.00017.46
8.1.30.0050.00317.53
8.1.20.0040.00417.47
8.1.10.0040.00417.39
8.1.00.0030.00517.45
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0080.00018.29
8.0.270.0040.00416.75
8.0.260.0080.00017.19
8.0.250.0040.00416.91
8.0.240.0050.00216.75
8.0.230.0030.00316.90
8.0.220.0030.00316.73
8.0.210.0040.00416.79
8.0.200.0000.00616.93
8.0.190.0050.00216.74
8.0.180.0000.00716.75
8.0.170.0040.00416.88
8.0.160.0040.00416.79
8.0.150.0040.00416.73
8.0.140.0000.00716.70
8.0.130.0030.00313.26
8.0.120.0000.00816.73
8.0.110.0080.00016.80
8.0.100.0040.00416.65
8.0.90.0040.00416.86
8.0.80.0030.01616.80
8.0.70.0000.00816.62
8.0.60.0080.00016.79
8.0.50.0040.00416.79
8.0.30.0120.00917.02
8.0.20.0110.00817.40
8.0.10.0050.00316.80
8.0.00.0110.00716.61
7.4.330.0050.00015.09
7.4.320.0040.00416.54
7.4.300.0000.00716.44
7.4.290.0000.00716.38
7.4.280.0000.00816.57
7.4.270.0000.00716.44
7.4.260.0000.00816.54
7.4.250.0040.00416.36
7.4.240.0050.00316.44
7.4.230.0030.00316.61
7.4.220.0110.00716.51
7.4.210.0040.01416.48
7.4.200.0050.00216.61
7.4.160.0060.01516.39
7.4.150.0170.00917.40
7.4.140.0120.00717.09
7.4.130.0080.00916.46
7.4.120.0110.00816.35
7.4.110.0100.01016.21
7.4.100.0070.01116.24
7.4.90.0110.00816.23
7.4.80.0080.01217.35
7.4.70.0110.01016.34
7.4.60.0110.01016.37
7.4.50.0060.01016.20
7.4.40.0120.01116.33
7.4.30.0090.00916.30
7.4.20.0160.00516.25
7.4.10.0140.00516.30
7.4.00.0110.00815.87
7.3.330.0060.00013.09
7.3.320.0000.00513.02
7.3.310.0070.00016.22
7.3.300.0030.00315.97
7.3.290.0080.00916.21
7.3.280.0120.00516.20
7.3.270.0150.00417.40
7.3.260.0090.00916.40
7.3.250.0090.00916.39
7.3.240.0110.00816.32
7.3.230.0080.01216.38
7.3.220.0120.01016.30
7.3.210.0090.00916.42
7.3.200.0110.00917.34
7.3.190.0110.01316.28
7.3.180.0100.00916.21
7.3.170.0110.00716.35
7.3.160.0160.00516.34
7.3.150.0100.01216.17
7.3.140.0110.01216.15
7.3.130.0100.01016.36
7.3.120.0120.01116.44
7.3.110.0130.01216.32
7.3.100.0120.01116.09
7.3.90.0110.01316.10
7.3.80.0160.01016.49
7.3.70.0100.01316.28
7.3.60.0090.01216.36
7.3.50.0090.01616.26
7.3.40.0140.00616.38
7.3.30.0160.00516.27
7.3.20.0130.01116.28
7.3.10.0120.00816.32
7.3.00.0110.00916.28
7.2.340.0080.01416.29
7.2.330.0110.00916.49
7.2.320.0110.00816.50
7.2.310.0120.00916.51
7.2.300.0130.01116.63
7.2.290.0110.00916.31
7.2.280.0110.00716.50
7.2.270.0130.01116.64
7.2.260.0170.00916.40
7.2.250.0220.01016.58
7.2.240.0150.00716.48
7.2.230.0180.01516.66
7.2.220.0190.00616.53
7.2.210.0220.00816.48
7.2.200.0130.01916.41
7.2.190.0240.00716.48
7.2.180.0130.01416.54
7.2.170.0150.01416.54
7.2.160.0240.00516.58
7.2.150.0110.01516.70
7.2.140.0220.00716.49
7.2.130.0150.00516.51
7.2.120.0120.00916.38
7.2.110.0160.00616.59
7.2.100.0120.00916.51
7.2.90.0100.00916.44
7.2.80.0120.01016.65
7.2.70.0160.00716.59
7.2.60.0100.01016.63
7.2.50.0090.01316.61
7.2.40.0110.00916.59
7.2.30.0140.00816.63
7.2.20.0130.00716.62
7.2.10.0110.00916.60
7.2.00.0120.00617.29
7.1.330.0080.01615.56
7.1.320.0200.01015.46
7.1.310.0190.01215.60
7.1.300.0120.01215.67
7.1.290.0170.00715.49
7.1.280.0180.01815.48
7.1.270.0180.00615.52
7.1.260.0130.01515.54
7.1.250.0030.01315.50
7.1.240.0090.00915.55
7.1.230.0110.01315.47
7.1.220.0160.00715.46
7.1.210.0220.00515.55
7.1.200.0130.00815.53
7.1.190.0200.00815.53
7.1.180.0170.01715.46
7.1.170.0170.01015.51
7.1.160.0100.01115.45
7.1.150.0100.01015.61
7.1.140.0120.01215.54
7.1.130.0110.00915.63
7.1.120.0110.00915.43
7.1.110.0240.00815.57
7.1.100.0150.00516.33
7.1.90.0150.00815.41
7.1.80.0140.00615.56
7.1.70.0070.00916.17
7.1.60.0140.00416.15
7.1.50.0130.00615.90
7.1.40.0110.00615.90
7.1.30.0100.00715.96
7.1.20.0140.00415.95
7.1.10.0110.01015.96
7.1.00.0080.01015.86
7.0.330.0190.00915.17
7.0.320.0120.01215.21
7.0.310.0130.00915.17
7.0.300.0300.01115.16
7.0.290.0160.00615.21
7.0.280.0130.01115.16
7.0.270.0080.01415.21
7.0.260.0090.01015.23
7.0.250.0170.00515.20
7.0.240.0220.00615.25
7.0.230.0180.00415.20
7.0.220.0190.00815.28
7.0.210.0160.00315.17
7.0.200.0130.00615.59
7.0.190.0130.00415.61
7.0.180.0120.00515.50
7.0.170.0100.00815.51
7.0.160.0150.01015.54
7.0.150.0090.00915.48
7.0.140.0080.00815.59
7.0.130.0110.00615.70
7.0.120.0110.01115.75
7.0.110.0080.00715.53
7.0.100.0110.00815.64
7.0.90.0100.00615.53
7.0.80.0110.00615.66
7.0.70.0070.01115.63
7.0.60.0110.00615.47
7.0.50.0130.00715.69
7.0.40.0130.00715.37
7.0.30.0150.00415.35
7.0.20.0140.00615.32
7.0.10.0130.00515.40
7.0.00.0170.00515.37
5.6.400.0100.01416.02
5.6.390.0140.00915.97
5.6.380.0180.00915.85
5.6.370.0150.01315.82
5.6.360.0150.01015.92
5.6.350.0110.01515.88
5.6.340.0170.01115.79
5.6.330.0140.01215.95
5.6.320.0180.00815.96
5.6.310.0180.00616.03
5.6.300.0130.02217.57
5.6.290.0130.01717.40
5.6.280.0110.02117.65
5.6.270.0140.02917.55
5.6.260.0130.02117.63
5.6.250.0140.01917.63
5.6.240.0100.02117.49
5.6.230.0100.02317.68
5.6.220.0110.02217.53
5.6.210.0090.02117.55
5.6.200.0060.02317.49
5.6.190.0120.02017.59
5.6.180.0110.02317.54
5.6.170.0050.02517.60
5.6.160.0100.02217.51
5.6.150.0090.02217.38
5.6.140.0100.03117.56
5.6.130.0120.01917.59
5.6.120.0090.02717.49
5.6.110.0080.01917.63
5.6.100.0100.02517.51
5.6.90.0150.02517.55
5.6.80.0120.02317.31
5.6.70.0080.02317.25
5.6.60.0140.02117.26
5.6.50.0110.02417.22
5.6.40.0100.01917.30
5.6.30.0100.02117.31
5.6.20.0110.01917.19
5.6.10.0130.01917.25
5.6.00.0130.02017.28
5.5.380.0070.02316.35
5.5.370.0050.02616.46
5.5.360.0060.02616.42
5.5.350.0130.01916.47
5.5.340.0080.02516.59
5.5.330.0120.02116.59
5.5.320.0100.02316.51
5.5.310.0130.01516.56
5.5.300.0090.02216.32
5.5.290.0100.02016.55
5.5.280.0100.01916.58
5.5.270.0070.02316.57
5.5.260.0200.02716.55
5.5.250.0130.03816.31
5.5.240.0140.01816.19
5.5.230.0130.02016.28
5.5.220.0100.02116.34
5.5.210.0140.02016.24
5.5.200.0050.03016.19
5.5.190.0120.01616.09
5.5.180.0100.02116.21
5.5.170.0120.01115.72
5.5.160.0110.02016.38
5.5.150.0130.02016.27
5.5.140.0110.01916.15
5.5.130.0170.01916.34
5.5.120.0100.02416.31
5.5.110.0060.02216.25
5.5.100.0070.02216.26
5.5.90.0110.01816.08
5.5.80.0090.02216.18
5.5.70.0100.02216.27
5.5.60.0070.02116.21
5.5.50.0100.02516.16
5.5.40.0120.01916.18
5.5.30.0120.01915.96
5.5.20.0140.01816.09
5.5.10.0100.02316.17
5.5.00.0180.01916.15
5.4.450.0070.01914.88
5.4.440.0110.02115.00
5.4.430.0050.01914.75
5.4.420.0090.02114.84
5.4.410.0070.02014.87
5.4.400.0070.01714.71
5.4.390.0080.01914.67
5.4.380.0070.02114.76
5.4.370.0080.02014.59
5.4.360.0100.01814.65
5.4.350.0080.01814.73
5.4.340.0110.01714.76
5.4.330.0110.00812.57
5.4.320.0050.02014.84
5.4.310.0090.03414.78
5.4.300.0100.01614.68
5.4.290.0130.01814.76
5.4.280.0120.01814.76
5.4.270.0130.01514.73
5.4.260.0130.01714.77
5.4.250.0090.02014.66
5.4.240.0060.02014.67
5.4.230.0090.01814.72
5.4.220.0120.01714.64
5.4.210.0090.01914.75
5.4.200.0110.01814.70
5.4.190.0100.01814.86
5.4.180.0130.01614.70
5.4.170.0160.01514.78
5.4.160.0100.02114.69
5.4.150.0140.01714.61
5.4.140.0130.01713.85
5.4.130.0140.01413.87
5.4.120.0110.02613.83
5.4.110.0120.02813.83
5.4.100.0100.01813.93
5.4.90.0140.01613.98
5.4.80.0080.02013.97
5.4.70.0130.01613.82
5.4.60.0150.01713.94
5.4.50.0100.03313.88
5.4.40.0120.01513.94
5.4.30.0090.02813.93
5.4.20.0120.01813.89
5.4.10.0080.02213.89
5.4.00.0090.02113.68

preferences:
50.33 ms | 401 KiB | 5 Q