3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlresponse = '<?xml version="1.0" encoding="utf-8"?> <string xmlns="http://www.cebroker.com/CEBrokerWebService/">&lt;licensees&gt;&lt;licensee valid="true" State="FL" licensee_profession="RN" licensee_number="2676612" state_license_format="" first_name="HENRY" last_name="GEITER" ErrorCode="" Message="" TimeStamp="2/19/2022 4:53:35 AM" /&gt;&lt;/licensees&gt;</string>'; $xml_string = simplexml_load_string($xmlresponse); echo 'First time, we only get it as a string, not as XML' . PHP_EOL; echo '------------------------------------------'. PHP_EOL; var_dump($xml_string); // We can see that it's just a stirng, not XML echo PHP_EOL . PHP_EOL; $licensees = simplexml_load_string($xml_string); echo 'The second time, we do get it as XML' . PHP_EOL; echo '------------------------------------------'. PHP_EOL; var_dump($licensees); // Not it's actually read as XML

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.0090.00916.75
8.3.50.0070.01420.40
8.3.40.0120.00319.11
8.3.30.0080.00618.95
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0100.00427.12
8.2.180.0070.00725.92
8.2.170.0040.01122.96
8.2.160.0130.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00627.12
8.2.120.0080.00527.12
8.2.110.0090.00524.59
8.2.100.0060.01023.03
8.2.90.0050.00724.40
8.2.80.0050.00423.72
8.2.70.0030.00623.19
8.2.60.0040.00623.18
8.2.50.0090.00221.89
8.2.40.0090.00321.94
8.2.30.0090.00221.91
8.2.20.0070.00522.74
8.2.10.0030.00821.82
8.2.00.0070.00422.34
8.1.280.0130.00325.92
8.1.270.0080.00023.99
8.1.260.0060.00227.22
8.1.250.0070.00128.09
8.1.240.0060.00323.92
8.1.230.0070.00324.67
8.1.220.0040.00422.99
8.1.210.0070.00223.51
8.1.200.0000.00922.78
8.1.190.0060.00222.86
8.1.180.0070.00421.90
8.1.170.0080.00322.13
8.1.160.0080.00322.20
8.1.150.0060.00522.14
8.1.140.0060.00521.74
8.1.130.0080.00421.75
8.1.120.0050.00621.75
8.1.110.0070.00421.75
8.1.100.0080.00321.69
8.1.90.0070.00421.73
8.1.80.0080.00321.70
8.1.70.0040.00721.71
8.1.60.0070.00421.79
8.1.50.0080.00421.74
8.1.40.0080.00421.72
8.1.30.0100.00721.78
8.1.20.0120.00521.79
8.1.10.0130.00521.74
8.1.00.0110.00621.73
8.0.300.0060.00524.12
8.0.290.0100.00222.48
8.0.280.0100.00422.08
8.0.270.0030.00821.56
8.0.260.0060.00721.56
8.0.250.0070.00421.58
8.0.240.0080.00421.58
8.0.230.0060.00721.53
8.0.220.0080.00621.57
8.0.210.0060.00721.57
8.0.200.0060.00521.58
8.0.190.0090.00521.55
8.0.180.0060.00521.56
8.0.170.0090.00521.59
8.0.160.0140.00121.54
8.0.150.0140.00121.52
8.0.140.0100.00621.47
8.0.130.0130.00221.49
8.0.120.0110.00421.50
8.0.110.0090.00521.51
8.0.100.0140.00221.50
8.0.90.0120.00521.53
8.0.80.0120.00521.55
8.0.70.0110.00621.53
8.0.60.0100.00721.47
8.0.50.0110.00521.47
8.0.30.0090.00621.50
8.0.20.0100.00421.55
8.0.10.0090.00521.55
7.4.330.0060.00419.15
7.4.320.0120.00221.44
7.4.300.0060.00721.38
7.4.290.0110.00421.42
7.4.280.0130.00721.47
7.4.270.0150.00221.39
7.4.260.0130.00321.36
7.4.250.0130.00221.38
7.4.240.0180.00421.40
7.4.230.0170.00521.44
7.4.220.0140.00221.40
7.4.210.0170.00321.43
7.4.200.0140.00521.41
7.4.190.0090.00521.40
7.4.180.0110.00421.41
7.4.160.0100.00421.43
7.4.150.0120.00221.47
7.4.140.0150.00321.34
7.4.130.0120.00721.39
7.4.120.0130.00421.38
7.4.110.0130.00221.33
7.4.100.0180.00221.42
7.4.90.0140.00521.43
7.4.80.0110.00521.39
7.4.70.0160.00421.39
7.4.60.0170.00221.36
7.4.50.0120.00721.35
7.4.40.0170.00621.27
7.4.30.0170.00121.40
7.4.20.0110.01121.43
7.4.10.0140.00621.39
7.4.00.0150.00421.40

preferences:
45.72 ms | 401 KiB | 5 Q