3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $result = simplexml_load_string("<segurado> <nomeSegurado>EMERSON DA SILVA BRULL</nomeSegurado> <numeroCpfCnpj>345769118</numeroCpfCnpj> <ordemCnpj>0</ordemCnpj> <digitoCpfCnpj>56</digitoCpfCnpj> <statusSegurado>2</statusSegurado> <corretores> <susep></susep> <susep>V2064F</susep> <susep>P5005J</susep> <susep>P2371J</susep> </corretores> </segurado>"); if (is_array($result->corretores->susep)){ foreach($result->corretores->susep as $susep) { if( !($susep instanceof SimpleXMLElement) ) { $retorno = $susep; break; } } $retorno = null; } else { $retorno = $result->corretores->susep; } if (is_null($retorno)){ $retorno=''; } //registrarLog(0, 0, 'Retorno Webservice: ' . $retorno); var_dump($retorno); } catch (Exception $e) { return array("erro"=>$e->getMessage()); }

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.0040.01118.76
8.3.30.0070.00719.29
8.3.20.0040.00420.30
8.3.10.0100.00020.03
8.3.00.0030.00719.38
8.2.170.0040.01122.96
8.2.160.0070.00720.65
8.2.150.0120.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00021.10
8.2.110.0060.00320.75
8.2.100.0110.00018.41
8.2.90.0080.00019.47
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00818.17
8.2.50.0030.00618.07
8.2.40.0040.00418.28
8.2.30.0040.00419.59
8.2.20.0070.00017.74
8.2.10.0000.00718.22
8.2.00.0030.00617.98
8.1.270.0040.00424.21
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.18
8.1.230.0030.00919.11
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0090.00017.48
8.1.190.0040.00417.47
8.1.180.0060.00318.10
8.1.170.0060.00318.63
8.1.160.0040.00422.07
8.1.150.0000.00719.06
8.1.140.0000.00817.60
8.1.130.0040.00418.02
8.1.120.0000.00817.55
8.1.110.0000.00817.58
8.1.100.0000.00717.63
8.1.90.0040.00417.52
8.1.80.0000.00817.56
8.1.70.0030.00317.53
8.1.60.0050.00317.62
8.1.50.0040.00417.70
8.1.40.0000.00817.48
8.1.30.0090.00017.69
8.1.20.0000.00817.71
8.1.10.0000.00817.80
8.1.00.0040.00417.75
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0000.00717.45
8.0.260.0000.00717.39
8.0.250.0030.00317.13
8.0.240.0030.00317.09
8.0.230.0000.00717.10
8.0.220.0000.00717.13
8.0.210.0070.00016.93
8.0.200.0060.00317.04
8.0.190.0040.00417.00
8.0.180.0040.00417.11
8.0.170.0040.00417.09
8.0.160.0040.00417.09
8.0.150.0030.00316.88
8.0.140.0040.00416.95
8.0.130.0030.00313.40
8.0.120.0000.00716.94
8.0.110.0000.00817.04
8.0.100.0000.00716.89
8.0.90.0040.00416.90
8.0.80.0040.01216.92
8.0.70.0000.00716.83
8.0.60.0020.00517.07
8.0.50.0000.00716.91
8.0.30.0070.01217.11
8.0.20.0150.00517.51
8.0.10.0000.00817.06
8.0.00.0050.01417.02
7.4.330.0060.00015.24
7.4.320.0070.00016.67
7.4.300.0030.00316.75
7.4.290.0040.00416.67
7.4.280.0040.00416.78
7.4.270.0030.00316.67
7.4.260.0000.00716.80
7.4.250.0070.00016.63
7.4.240.0000.00716.78
7.4.230.0000.00716.51
7.4.220.0090.00916.81
7.4.210.0060.01016.55
7.4.200.0050.00216.81
7.4.160.0100.00616.77
7.4.150.0110.01117.40
7.4.140.0060.01317.86
7.4.130.0090.00816.63
7.4.120.0100.00716.56
7.4.110.0000.01816.66
7.4.100.0060.01216.83
7.4.90.0000.01716.69
7.4.80.0110.01119.39
7.4.70.0110.00716.78
7.4.60.0070.01116.73
7.4.50.0080.00016.75
7.4.40.0070.01016.32
7.4.30.0080.00816.78
7.4.00.0100.00614.91
7.3.330.0000.00713.01
7.3.320.0020.00213.17
7.3.310.0030.00316.21
7.3.300.0070.00016.36
7.3.290.0090.00616.38
7.3.280.0030.01316.37
7.3.270.0090.00917.40
7.3.260.0090.00916.45
7.3.250.0120.00616.54
7.3.240.0070.01016.50
7.3.230.0100.00716.48
7.3.210.0090.00916.69
7.3.200.0080.00819.39
7.3.190.0070.01016.40
7.3.180.0080.00816.39
7.3.170.0100.01016.36
7.3.160.0120.00416.30
7.3.120.0050.01114.90
7.3.110.0070.01114.71
7.3.100.0060.01214.65
7.3.90.0040.00814.73
7.3.80.0040.01214.85
7.3.70.0060.00614.62
7.3.60.0060.00814.80
7.3.50.0020.01214.71
7.3.40.0040.00714.84
7.3.30.0040.00814.78
7.3.20.0060.00716.46
7.3.10.0050.00716.69
7.3.00.0040.01116.66
7.2.330.0060.01316.69
7.2.320.0100.00716.58
7.2.310.0090.01316.93
7.2.300.0070.01116.59
7.2.290.0070.01016.62
7.2.250.0050.01315.12
7.2.240.0100.00715.00
7.2.230.0060.01015.02
7.2.220.0030.01114.98
7.2.210.0070.00614.88
7.2.200.0050.00814.93
7.2.190.0060.00914.92
7.2.180.0060.00714.91
7.2.170.0070.00614.86
7.2.160.0030.00714.84
7.2.150.0070.00716.84
7.2.140.0030.01016.98
7.2.130.0040.01216.93
7.2.120.0090.00616.77
7.2.110.0040.01117.02
7.2.100.0040.00716.71
7.2.90.0000.01117.15
7.2.80.0070.01016.78
7.2.70.0070.00416.71
7.2.60.0030.01216.80
7.2.50.0030.00916.95
7.2.40.0060.00917.01
7.2.30.0000.01316.91
7.2.20.0030.01416.86
7.2.10.0070.00716.91
7.2.00.0070.00618.10
7.1.330.0080.00715.83
7.1.320.0030.00915.95
7.1.310.0030.00915.88
7.1.300.0100.00415.83
7.1.290.0040.00815.79
7.1.280.0050.00715.74
7.1.270.0050.00715.93
7.1.260.0040.00915.81
7.1.250.0080.00416.07
7.1.240.0120.00315.91
7.1.230.0170.00015.88
7.1.220.0120.00315.70
7.1.210.0040.00715.93
7.1.200.0020.01115.88
7.1.190.0060.00615.89
7.1.180.0000.00815.90
7.1.170.0030.00915.87
7.1.160.0030.00715.83
7.1.150.0060.00316.14
7.1.140.0100.00715.87
7.1.130.0060.00615.64
7.1.120.0090.00616.07
7.1.110.0040.01515.85
7.1.100.0060.00417.08
7.1.90.0070.00715.79
7.1.80.0090.00315.90
7.1.70.0050.00816.64
7.1.60.0080.01117.51
7.1.50.0070.01216.58
7.1.40.0060.00615.65
7.1.30.0030.01015.93
7.1.20.0090.00315.79
7.1.10.0070.00715.83
7.1.00.0050.04319.10
7.0.330.0070.00315.57
7.0.320.0000.01115.35
7.0.310.0110.00415.34
7.0.300.0040.00715.36
7.0.290.0080.00815.41
7.0.280.0070.00715.57
7.0.270.0020.01015.23
7.0.260.0110.00715.53
7.0.250.0080.00415.74
7.0.240.0070.00715.49
7.0.230.0000.01015.59
7.0.220.0000.01115.36
7.0.210.0090.00915.60
7.0.200.0100.00615.09
7.0.190.0080.00415.51
7.0.180.0070.00715.33
7.0.170.0070.00715.46
7.0.160.0040.01215.33
7.0.150.0070.00715.56
7.0.140.0030.04018.75
7.0.130.0130.00315.43
7.0.120.0000.01315.59
7.0.110.0060.00615.46
7.0.100.0100.03517.69
7.0.90.0060.02817.83
7.0.80.0070.04517.88
7.0.70.0050.04717.76
7.0.60.0070.04217.71
7.0.50.0180.04518.06
7.0.40.0050.04216.89
7.0.30.0110.04216.74
7.0.20.0070.04816.80
7.0.10.0130.03716.92
7.0.00.0070.03916.86
5.6.400.0030.00914.33
5.6.390.0030.00914.66
5.6.380.0070.00714.16
5.6.370.0070.00714.73
5.6.360.0030.01214.20
5.6.350.0030.00614.39
5.6.340.0140.00314.61
5.6.330.0110.00413.89
5.6.320.0100.00714.48
5.6.310.0040.01414.41
5.6.300.0040.00414.58
5.6.290.0120.00614.54
5.6.280.0080.03517.78
5.6.270.0120.00314.06
5.6.260.0030.01414.40
5.6.250.0030.04517.34
5.6.240.0050.04817.48
5.6.230.0120.04217.39
5.6.220.0120.04017.28
5.6.210.0050.03317.51
5.6.200.0120.03817.61
5.6.190.0050.02617.65
5.6.180.0090.02717.79
5.6.170.0100.04517.67
5.6.160.0070.04617.54
5.6.150.0030.04817.69
5.6.140.0020.03417.75
5.6.130.0120.03717.64
5.6.120.0120.04317.62
5.6.110.0100.04117.84
5.6.100.0070.03017.76
5.6.90.0080.03317.67
5.6.80.0040.04817.29
5.6.70.0030.03717.20
5.6.60.0040.04617.31
5.6.50.0070.03817.19
5.6.40.0080.04217.47
5.6.30.0050.02617.35
5.6.20.0080.04017.23
5.6.10.0030.04717.26
5.6.00.0080.04017.21
5.5.380.0050.04317.26
5.5.370.0040.04117.46
5.5.360.0090.03917.15
5.5.350.0080.04317.15
5.5.340.0080.04617.54
5.5.330.0070.04717.60
5.5.320.0050.04517.40
5.5.310.0040.04517.56
5.5.300.0100.03717.64
5.5.290.0090.04117.58
5.5.280.0110.04617.61
5.5.270.0060.03917.54
5.5.260.0100.03517.57
5.5.250.0080.04317.46
5.5.240.0060.03717.23
5.5.230.0080.04117.13
5.5.220.0060.04017.20
5.5.210.0070.04417.10
5.5.200.0100.04117.22
5.5.190.0080.04217.25
5.5.180.0040.04217.21
5.5.170.0060.00613.76
5.5.160.0100.04317.18
5.5.150.0100.04217.21
5.5.140.0080.04117.16
5.5.130.0070.04017.21
5.5.120.0100.03717.20
5.5.110.0050.02917.16
5.5.100.0080.03817.17
5.5.90.0080.04317.08
5.5.80.0120.04017.11
5.5.70.0100.04717.00
5.5.60.0050.04417.11
5.5.50.0070.04217.13
5.5.40.0070.03016.96
5.5.30.0070.04417.07
5.5.20.0050.04717.26
5.5.10.0080.04517.21
5.5.00.0110.03516.97
5.4.450.0050.04515.17
5.4.440.0070.04315.07
5.4.430.0050.04215.23
5.4.420.0080.02115.23
5.4.410.0100.03315.21
5.4.400.0030.04014.96
5.4.390.0030.02615.10
5.4.380.0100.01815.02
5.4.370.0040.02515.06
5.4.360.0070.04215.15
5.4.350.0080.02515.14
5.4.340.0030.04014.97
5.4.330.0030.00910.56
5.4.320.0090.04114.99
5.4.310.0050.04214.93
5.4.300.0060.04115.07
5.4.290.0070.04114.84
5.4.280.0040.04214.82
5.4.270.0050.03314.99
5.4.260.0100.04214.92
5.4.250.0070.03315.07
5.4.240.0070.03814.93
5.4.230.0100.03714.99
5.4.220.0070.02915.10
5.4.210.0100.04115.00
5.4.200.0030.03814.96
5.4.190.0070.04014.92
5.4.180.0060.04114.85
5.4.170.0090.03814.91
5.4.160.0080.04114.93
5.4.150.0080.03015.03
5.4.140.0070.03313.64
5.4.130.0050.03913.63
5.4.120.0130.03113.67
5.4.110.0020.02613.69
5.4.100.0050.02513.59
5.4.90.0050.04013.70
5.4.80.0080.03813.67
5.4.70.0070.03813.71
5.4.60.0030.03213.79
5.4.50.0030.03713.74
5.4.40.0080.03513.63
5.4.30.0030.03113.63
5.4.20.0070.03513.59
5.4.10.0050.03713.69
5.4.00.0050.03813.41
5.3.290.0100.07314.74
5.3.280.0030.07714.50
5.3.270.0030.08714.55
5.3.260.0130.07014.60
5.3.250.0100.07314.61
5.3.240.0070.04714.67
5.3.230.0030.07714.70
5.3.220.0070.07314.65
5.3.210.0070.04714.68
5.3.200.0030.07714.63
5.3.190.0070.06014.60
5.3.180.0100.07014.49
5.3.170.0070.06314.56
5.3.160.0200.05714.65
5.3.150.0070.04714.70
5.3.140.0070.06714.63
5.3.130.0170.04714.68
5.3.120.0130.06714.54
5.3.110.0070.07714.66
5.3.100.0100.06314.10
5.3.90.0100.07314.14
5.3.80.0030.08013.86
5.3.70.0070.05314.09
5.3.60.0070.07713.93
5.3.50.0130.05313.95
5.3.40.0000.05314.01
5.3.30.0100.04313.98
5.3.20.0070.03313.80
5.3.10.0070.07013.64
5.3.00.0000.07713.69
5.2.170.0030.06712.00
5.2.160.0000.03712.00
5.2.150.0070.03712.00
5.2.140.0070.06312.00
5.2.130.0030.06012.00
5.2.120.0000.06712.00
5.2.110.0030.06712.00
5.2.100.0130.06012.00
5.2.90.0070.02712.00
5.2.80.0030.06712.00
5.2.70.0070.05712.00
5.2.60.0000.06712.00
5.2.50.0030.04312.00
5.2.40.0100.05312.00
5.2.30.0070.06012.00
5.2.20.0000.05312.00
5.2.10.0000.05712.00
5.2.00.0030.06012.00
5.1.60.0070.04712.00
5.1.50.0000.04012.00
5.1.40.0070.03012.00
5.1.30.0030.04312.00
5.1.20.0100.05312.00
5.1.10.0030.04712.00
5.1.00.0130.04712.00
5.0.50.0000.05012.00
5.0.40.0070.04312.00
5.0.30.0070.06012.00
5.0.20.0100.03312.00
5.0.10.0000.02312.00
5.0.00.0030.03012.00
4.4.90.0030.03012.00
4.4.80.0000.03712.00
4.4.70.0000.03712.00
4.4.60.0070.03012.00
4.4.50.0030.03712.00
4.4.40.0030.05312.00
4.4.30.0000.03712.00
4.4.20.0100.03012.00
4.4.10.0000.03712.00
4.4.00.0100.04312.00
4.3.110.0000.03712.00
4.3.100.0030.03312.00
4.3.90.0030.03012.00
4.3.80.0000.05312.00
4.3.70.0000.04012.00
4.3.60.0030.03312.00
4.3.50.0000.03712.00
4.3.40.0030.03012.00
4.3.30.0030.03012.00
4.3.20.0000.03712.00
4.3.10.0030.03312.00
4.3.00.0030.02712.00

preferences:
38.36 ms | 400 KiB | 5 Q