3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://timsdevorg-developer-edition.na24.force.com/services/apexrest/cms/ocmsrest/'; $fields = array( 'service' => 'OrchestraRenderingAPI', 'apiVersion' => '5.0', 'action' => 'getRenderedContent', 'renderingRequest' => array( 'renderType' => 'originId', 'siteName' => 'OCMSCommunity', 'parameters' => array( 'renderType' => 'originId', ), 'listParameters' => array( 'contentLayouts' => array( 'CustomHtml', ), 'originIds' => array( 'a0F1a000002JDsVEAW', ), ), ), ); $fields_string = ''; foreach ($fields as $key => $value) { if (!is_array($value)) { $fields_string .= $key . '=' . $value . '&'; } else { $fields_string .= $key . '=' . json_encode($value) . '&'; } } $fields_string = rtrim($fields_string, '&'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); $result = curl_exec($ch); curl_close($ch); $obj = json_decode($result); $renderings = json_decode($obj->responseObject); foreach ($renderings as $rendering) { if (is_array($rendering)) { foreach ($rendering as $render) { foreach ($render->renderMap as $renderMap) { echo htmlspecialchars($renderMap); } } } }

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.40.0140.00018.88
8.3.30.0150.00018.61
8.3.20.0040.00420.16
8.3.10.0080.00023.83
8.3.00.0050.00319.78
8.2.170.0120.00622.96
8.2.160.0030.01019.06
8.2.150.0070.00724.18
8.2.140.0050.00324.66
8.2.130.0080.00021.00
8.2.120.0000.00726.35
8.2.110.0030.00621.18
8.2.100.0040.00818.22
8.2.90.0040.00418.28
8.2.80.0040.00417.97
8.2.70.0030.00618.05
8.2.60.0050.00518.05
8.2.50.0040.00418.10
8.2.40.0060.00320.66
8.2.30.0030.00619.45
8.2.20.0040.00418.06
8.2.10.0070.00018.20
8.2.00.0040.00418.07
8.1.270.0000.00723.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.16
8.1.230.0080.00422.63
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0060.00317.25
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0040.00418.49
8.1.160.0000.00719.05
8.1.150.0040.00420.59
8.1.140.0040.00419.65
8.1.130.0000.00718.87
8.1.120.0070.00017.41
8.1.110.0000.00817.43
8.1.100.0040.00417.47
8.1.90.0040.00417.52
8.1.80.0040.00417.46
8.1.70.0040.00417.51
8.1.60.0030.00517.63
8.1.50.0090.00017.56
8.1.40.0080.00017.54
8.1.30.0000.00817.68
8.1.20.0070.00017.66
8.1.10.0060.00317.57
8.1.00.0030.00617.55
8.0.300.0080.00019.53
8.0.290.0060.00316.75
8.0.280.0040.00418.50
8.0.270.0030.00317.21
8.0.260.0030.00316.90
8.0.250.0000.00717.04
8.0.240.0000.00716.92
8.0.230.0000.00717.00
8.0.220.0030.00316.89
8.0.210.0000.00716.89
8.0.200.0000.00716.93
8.0.190.0040.00417.01
8.0.180.0000.00717.03
8.0.170.0040.00417.08
8.0.160.0000.00716.99
8.0.150.0000.00817.00
8.0.140.0030.00416.96
8.0.130.0030.00313.51
8.0.120.0000.00716.84
8.0.110.0030.00516.86
8.0.100.0000.00717.05
8.0.90.0020.00517.05
8.0.80.0110.00616.94
8.0.70.0000.00817.10
8.0.60.0050.00317.00
8.0.50.0080.00017.07
8.0.30.0120.00517.13
8.0.20.0100.01017.40
8.0.10.0000.00817.07
8.0.00.0110.00616.62
7.4.330.0000.00515.55
7.4.320.0060.00016.68
7.4.300.0040.00416.55
7.4.290.0040.00416.61
7.4.280.0070.00016.54
7.4.270.0040.00416.45
7.4.260.0070.00016.53
7.4.250.0040.00416.45
7.4.240.0030.00516.55
7.4.230.0030.00316.50
7.4.220.0090.00916.57
7.4.210.0040.01116.55
7.4.200.0040.00416.44
7.4.160.0070.00916.50
7.4.150.0070.01417.40
7.4.140.0080.00917.86
7.4.130.0090.00916.66
7.4.120.0150.00616.71
7.4.110.0100.00716.53
7.4.100.0070.01716.65
7.4.90.0110.01116.68
7.4.80.0000.02019.39
7.4.70.0100.00716.45
7.4.60.0160.00716.78
7.4.50.0040.00716.70
7.4.40.0100.00616.54
7.4.30.0030.01516.60
7.4.00.0070.01014.88
7.3.330.0030.00313.23
7.3.320.0060.00013.11
7.3.310.0050.00316.19
7.3.300.0070.00016.38
7.3.290.0080.00716.40
7.3.280.0090.00816.38
7.3.270.0120.00917.40
7.3.260.0090.00916.60
7.3.250.0130.00516.51
7.3.240.0090.00916.55
7.3.230.0130.01216.58
7.3.210.0090.00616.38
7.3.200.0190.00316.70
7.3.190.0060.01316.59
7.3.180.0100.00716.46
7.3.170.0090.01216.41
7.3.160.0040.01116.44
7.3.120.0120.00615.00
7.3.110.0030.01415.03
7.3.100.0030.01314.95
7.3.90.0110.00015.07
7.3.80.0060.00914.94
7.3.70.0030.00614.58
7.3.60.0080.00014.73
7.3.50.0000.01414.80
7.3.40.0060.00314.95
7.3.30.0100.00014.68
7.3.20.0040.00816.80
7.3.10.0050.00916.56
7.3.00.0070.00716.70
7.2.330.0100.00716.76
7.2.320.0030.01416.84
7.2.310.0040.01216.91
7.2.300.0030.01416.74
7.2.290.0060.00916.68
7.2.250.0150.00415.27
7.2.240.0130.00715.27
7.2.230.0100.01015.32
7.2.220.0030.00715.00
7.2.210.0070.00715.19
7.2.200.0100.00315.26
7.2.190.0000.01415.07
7.2.180.0070.00715.20
7.2.170.0000.01114.97
7.2.130.0030.01016.70
7.2.120.0060.00616.79
7.2.110.0000.01116.88
7.2.100.0120.00016.88
7.2.90.0030.01217.00
7.2.80.0000.01416.71
7.2.70.0110.00016.97
7.2.60.0470.01015.87
7.2.50.0000.01316.52
7.2.40.0060.00616.83
7.2.30.0070.00717.10
7.2.20.0040.01116.82
7.2.10.0030.00616.88
7.2.00.0050.00918.16
7.1.330.0030.01015.94
7.1.320.0000.01115.92
7.1.310.0040.00815.84
7.1.300.0120.00315.77
7.1.290.0080.00015.52
7.1.280.0040.01115.73
7.1.270.0000.01415.85
7.1.260.0040.00815.88
7.1.250.0040.00715.88
7.1.200.0090.00615.60
7.1.100.0030.01018.08
7.1.70.0250.01315.39
7.1.60.0500.00633.42
7.1.50.0460.01533.20
7.1.40.0500.03032.77
7.1.30.0470.01432.67
7.1.20.0470.00932.80
7.1.10.0260.01514.85
7.1.00.0180.01114.80
7.0.200.0240.01515.10
7.0.190.0170.00915.04
7.0.180.0170.00814.53
7.0.170.0250.01114.56
7.0.160.0230.01114.55
7.0.150.0280.01214.58
7.0.140.0240.00914.48
7.0.130.0160.01314.80
7.0.120.0270.00814.84
7.0.110.0170.00914.80
7.0.100.1310.00914.58
7.0.90.0240.00914.46
7.0.80.0150.01814.49
7.0.70.0230.00914.30
7.0.60.0270.01014.44
7.0.50.0240.01614.49
7.0.40.0280.00914.77
7.0.30.0260.01014.77
7.0.20.0250.01214.62
7.0.10.0200.01714.54
7.0.00.0280.01214.70

preferences:
37.77 ms | 400 KiB | 5 Q