3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{ "contacts": [{ "addedAt": 1414182103652, "vid": 2, "canonical-vid": 2, "merged-vids": [], "portal-id": 448845, "is-contact": true, "properties": { "firstname": { "value": "Andre" }, "lastmodifieddate": { "value": "1472024018755" }, "company": { "value": "test" }, "lastname": { "value": "Jansen" } } }] }'; $json = json_decode($string,true); foreach ($json['contacts'][0]['properties']['company'] as $person) { echo $person; }

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.60.0080.00616.50
8.3.50.0130.00522.04
8.3.40.0130.00918.66
8.3.30.0080.00818.87
8.3.20.0040.00420.25
8.3.10.0040.00423.65
8.3.00.0080.00022.40
8.2.180.0140.00418.54
8.2.170.0090.00622.96
8.2.160.0130.00019.38
8.2.150.0070.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00421.06
8.2.110.0030.00619.45
8.2.100.0110.00017.78
8.2.90.0040.00419.38
8.2.80.0040.00419.11
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0040.00418.28
8.2.30.0000.00718.11
8.2.20.0070.00017.81
8.2.10.0030.00618.00
8.2.00.0040.00417.62
8.1.280.0080.00825.92
8.1.270.0030.00523.96
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0100.00722.02
8.1.230.0060.00620.92
8.1.220.0000.00917.76
8.1.210.0030.00818.88
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0030.00518.39
8.1.160.0040.00418.89
8.1.150.0040.00418.80
8.1.140.0040.00419.53
8.1.130.0030.00317.75
8.1.120.0040.00417.32
8.1.110.0050.00317.35
8.1.100.0000.00717.48
8.1.90.0070.00017.46
8.1.80.0030.00317.52
8.1.70.0030.00317.34
8.1.60.0040.00417.60
8.1.50.0080.00017.55
8.1.40.0030.00617.54
8.1.30.0040.00417.66
8.1.20.0000.00717.64
8.1.10.0060.00317.59
8.1.00.0080.00017.44
8.0.300.0070.00020.20
8.0.290.0040.00416.63
8.0.280.0040.00418.51
8.0.270.0040.00417.18
8.0.260.0000.00717.29
8.0.250.0030.00316.85
8.0.240.0040.00416.84
8.0.230.0000.00716.95
8.0.220.0000.00716.91
8.0.210.0070.00016.77
8.0.200.0030.00316.97
8.0.190.0080.00016.94
8.0.180.0040.00416.95
8.0.170.0060.00316.97
8.0.160.0000.00716.98
8.0.150.0030.00516.89
8.0.140.0030.00716.83
8.0.130.0000.00513.30
8.0.120.0060.00316.86
8.0.110.0000.00816.94
8.0.100.0070.00016.77
8.0.90.0040.00416.77
8.0.80.0120.00316.91
8.0.70.0000.00716.72
8.0.60.0000.00916.77
8.0.50.0000.00816.84
8.0.30.0100.01017.09
8.0.20.0140.00717.30
8.0.10.0100.00717.08
8.0.00.0130.00716.94
7.4.330.0020.00215.08
7.4.320.0060.00016.61
7.4.300.0000.00716.60
7.4.290.0070.00016.58
7.4.280.0040.00416.60
7.4.270.0070.00016.60
7.4.260.0090.00416.50
7.4.250.0070.00016.35
7.4.240.0000.00816.38
7.4.230.0030.00316.58
7.4.220.0040.01416.56
7.4.210.0100.00616.50
7.4.200.0070.00016.58
7.4.160.0100.00616.52
7.4.150.0120.00717.01
7.4.140.0110.00617.40
7.4.130.0090.01016.50
7.4.120.0150.00616.51
7.4.110.0070.01116.46
7.4.100.0080.01516.46
7.4.90.0080.01216.51
7.4.80.0140.00617.47
7.4.70.0110.00816.45
7.4.60.0110.00916.50
7.4.50.0080.00916.44
7.4.40.0060.01316.44
7.4.30.0080.01016.46
7.4.20.0050.01516.45
7.4.10.0120.00616.11
7.4.00.0040.01315.85
7.3.330.0050.00013.12
7.3.320.0000.00613.30
7.3.310.0040.00416.25
7.3.300.0030.00316.36
7.3.290.0000.00716.32
7.3.280.0060.00916.33
7.3.270.0150.00616.83
7.3.260.0090.00816.34
7.3.250.0120.00616.46
7.3.240.0120.00916.39
7.3.230.0160.00616.45
7.3.220.0080.01416.27
7.3.210.0080.01016.36
7.3.200.0060.01216.38
7.3.190.0090.01116.40
7.3.180.0100.01016.39
7.3.170.0080.01116.30
7.3.160.0120.00616.37
7.3.150.0120.00416.48
7.3.140.0070.01216.43
7.3.130.0090.00916.02
7.3.120.0110.00715.98
7.3.110.0090.00715.94
7.3.100.0110.00515.89
7.3.90.0100.00616.01
7.3.80.0080.00915.81
7.3.70.0100.00715.93
7.3.60.0050.01216.03
7.3.50.0060.00916.06
7.3.40.0130.00716.03
7.3.30.0090.01015.67
7.3.20.0210.01016.24
7.3.10.0200.01016.36
7.3.00.0200.00916.50
7.2.340.0150.01216.51
7.2.330.0130.01016.50
7.2.320.0140.00916.61
7.2.310.0120.01116.61
7.2.300.0160.00616.57
7.2.290.0130.00816.61
7.2.280.0120.01116.57
7.2.270.0210.01116.64
7.2.260.0110.01016.06
7.2.250.0140.00616.13
7.2.240.0120.00816.10
7.2.230.0130.00716.18
7.2.220.0110.00816.23
7.2.210.0130.00916.22
7.2.200.0160.00816.18
7.2.190.0150.00716.22
7.2.180.0090.01216.04
7.2.170.0120.01116.12
7.2.160.0130.00815.93
7.2.150.0270.01116.65
7.2.140.0210.01116.60
7.2.130.0260.00616.67
7.2.120.0210.01116.78
7.2.110.0200.00816.71
7.2.100.0170.01116.68
7.2.90.0170.01116.64
7.2.80.0210.01016.82
7.2.70.0280.00816.74
7.2.60.0170.01116.76
7.2.50.0230.00916.70
7.2.40.0250.00816.80
7.2.30.0230.01016.73
7.2.20.0230.01416.72
7.2.10.0230.01016.71
7.2.00.0230.00817.65
7.1.330.0360.01116.13
7.1.320.0190.00716.08
7.1.310.0170.01116.11
7.1.300.0120.01315.97
7.1.290.0160.01216.11
7.1.280.0220.00815.96
7.1.270.0270.00715.59
7.1.260.0260.01115.52
7.1.250.0300.00815.56
7.1.240.0380.01115.57
7.1.230.0260.00915.55
7.1.220.0220.01015.71
7.1.210.0250.01315.54
7.1.200.0210.00915.59
7.1.190.0290.00815.62
7.1.180.0310.00915.58
7.1.170.0270.01115.58
7.1.160.0260.00815.50
7.1.150.0240.01315.63
7.1.140.0300.00915.54
7.1.130.0300.00815.63
7.1.120.0220.00916.13
7.1.110.0220.00916.04
7.1.100.0200.01116.07
7.1.90.0280.00815.93
7.1.80.0210.01016.01
7.1.70.0190.00916.03
7.1.60.0210.01018.56
7.1.50.0240.01318.63
7.1.40.0270.00918.64
7.1.30.0310.00918.73
7.1.20.0280.00818.75
7.1.10.0210.01015.71
7.1.00.0180.01816.63
7.0.330.0350.01115.21
7.0.320.0310.01015.23
7.0.310.0280.01115.20
7.0.300.0340.00615.18
7.0.290.0290.01115.27
7.0.280.0300.01015.28
7.0.270.0330.01215.26
7.0.260.0290.01115.75
7.0.250.0270.00915.84
7.0.240.0240.01115.81
7.0.230.0250.01015.79
7.0.220.0290.00715.87
7.0.210.0390.00815.59
7.0.200.0330.01015.42
7.0.190.0250.01115.63
7.0.180.0290.01015.41
7.0.170.0290.01115.48
7.0.160.0270.01115.49
7.0.150.0300.00715.49
7.0.140.0280.00915.53
7.0.130.0240.00915.49
7.0.120.0260.00915.51
7.0.110.0230.01115.50
7.0.100.0220.01716.27
7.0.90.0220.02116.24
7.0.80.0240.01916.19
7.0.70.0230.01716.16
7.0.60.0230.01816.20
7.0.50.0230.01616.26
7.0.40.0260.01816.34
7.0.30.0250.01716.34
7.0.20.0280.01716.30
7.0.10.0280.01316.25
7.0.00.0240.01816.32
5.6.400.0230.01015.51
5.6.390.0190.01015.38
5.6.380.0230.00815.38
5.6.370.0180.01515.60
5.6.360.0190.00915.58
5.6.350.0200.01115.50
5.6.340.0210.00915.63
5.6.330.0170.01215.58
5.6.320.0200.00815.38
5.6.310.0140.01615.59
5.6.300.0190.02016.56
5.6.290.0170.02516.60
5.6.280.0200.01616.56
5.6.270.0160.01916.64
5.6.260.0180.02116.65
5.6.250.0160.02617.21
5.6.240.0200.02317.26
5.6.230.0170.02917.22
5.6.220.0160.02917.26
5.6.210.0180.03017.32
5.6.200.0160.02817.28
5.6.190.0210.02217.38
5.6.180.0180.02717.30
5.6.170.0160.02717.38
5.6.160.0200.02517.28
5.6.150.0170.03217.29
5.6.140.0190.02617.28
5.6.130.0210.02417.30
5.6.120.0170.02817.23
5.6.110.0180.02917.29
5.6.100.0190.02817.31
5.6.90.0150.03217.37
5.6.80.0180.02517.12
5.6.70.0150.03517.08
5.6.60.0160.03117.10
5.6.50.0160.02917.08
5.6.40.0150.02616.95
5.6.30.0120.02917.09
5.6.20.0160.02717.12
5.6.10.0190.02616.98
5.6.00.0170.02517.03

preferences:
61.85 ms | 401 KiB | 5 Q