3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dtd = "abc.DTD"; $root = 'LOAN_APPLICATION'; $imp = new DOMImplementation(); // create DTD $dtd = $imp->createDocumentType($root,null,"asdasdas.DTD"); // create document $dom = $imp->createDocument(null,$root,$dtd); $dom->formatOutput = true; $base = $dom->getElementsByTagName($root)->item(0); // create extension $ext = $dom->createElement('EXTENSION_LOAN_APPLICATION'); $ext->setAttribute('FRELoanProspectorVersionIdentifier','4.0'); // create function request $fr = $dom->createElement('FUNCTION_REQUEST'); $fr->setAttribute('_Type','PollingRequest'); // create requesting party $frp = $dom->createElement('FRE_REQUESTING_PARTY'); $frp->setAttribute('SellerServicerNumber',static::SERVICE_SELLER_ID); $frp->setAttribute('UserIdentifier',static::SERVICE_USER_ID); $frp->setAttribute('Password',static::SERVICE_PASSWORD); // create polling status $ps = $dom->createElement('POLLING_STATUS'); $ps->setAttribute('LoanProspectorAsynchronousIdentifier',$this->reference); // build $ext->appendChild($fr); $ext->appendChild($frp); $ext->appendChild($ps); $base->appendChild($ext); print $dom->saveXML();

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.0110.01118.45
8.3.50.0120.01221.09
8.3.40.0150.00018.88
8.3.30.0080.00819.00
8.3.20.0080.00020.34
8.3.10.0040.00422.04
8.3.00.0080.00023.65
8.2.180.0040.01118.54
8.2.170.0070.00722.96
8.2.160.0070.01419.46
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00021.06
8.2.120.0070.00026.35
8.2.110.0090.00020.38
8.2.100.0040.00817.72
8.2.90.0070.00317.88
8.2.80.0050.00319.44
8.2.70.0060.00318.04
8.2.60.0110.00017.91
8.2.50.0050.00318.10
8.2.40.0000.00720.54
8.2.30.0040.00419.53
8.2.20.0000.01117.77
8.2.10.0050.00218.14
8.2.00.0060.00318.09
8.1.280.0120.00325.92
8.1.270.0040.01422.30
8.1.260.0030.00528.09
8.1.250.0020.00528.09
8.1.240.0110.00022.18
8.1.230.0120.00022.80
8.1.220.0000.00817.80
8.1.210.0040.00418.77
8.1.200.0040.00417.38
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0090.00018.64
8.1.160.0040.00420.84
8.1.150.0000.00920.72
8.1.140.0040.00419.62
8.1.130.0000.00717.80
8.1.120.0040.00317.46
8.1.110.0040.00417.52
8.1.100.0070.00017.53
8.1.90.0000.00717.57
8.1.80.0080.00017.54
8.1.70.0070.00017.57
8.1.60.0040.00417.68
8.1.50.0000.00817.66
8.1.40.0030.00617.61
8.1.30.0040.00417.66
8.1.20.0030.00617.64
8.1.10.0040.00417.71
8.1.00.0060.00317.58
8.0.300.0050.00219.90
8.0.290.0080.00017.00
8.0.280.0070.00018.61
8.0.270.0040.00417.36
8.0.260.0080.00017.37
8.0.250.0070.00017.04
8.0.240.0000.00717.11
8.0.230.0000.00817.11
8.0.220.0040.00417.06
8.0.210.0040.00416.99
8.0.200.0000.00717.13
8.0.190.0070.00017.12
8.0.180.0050.00316.96
8.0.170.0000.00817.05
8.0.160.0030.00316.98
8.0.150.0000.00916.92
8.0.140.0030.00517.00
8.0.130.0030.00313.56
8.0.120.0030.00616.98
8.0.110.0000.00716.87
8.0.100.0000.00717.16
8.0.90.0070.00017.07
8.0.80.0090.01217.08
8.0.70.0040.00416.79
8.0.60.0000.00717.10
8.0.50.0040.00416.96
8.0.30.0110.00717.01
8.0.20.0100.00817.40
8.0.10.0000.00717.00
8.0.00.0080.01216.88
7.4.330.0050.00016.78
7.4.320.0000.00616.59
7.4.300.0030.00316.69
7.4.290.0100.00016.73
7.4.280.0040.00416.45
7.4.270.0030.00316.56
7.4.260.0100.00016.52
7.4.250.0080.00016.65
7.4.240.0000.00716.67
7.4.230.0030.00316.71
7.4.220.0060.01316.58
7.4.210.0080.00816.68
7.4.200.0020.00516.65
7.4.160.0090.00616.69
7.4.150.0110.00617.40
7.4.140.0120.00917.86
7.4.130.0120.00616.68
7.4.120.0070.01016.61
7.4.110.0120.00616.68
7.4.100.0030.01516.43
7.4.90.0100.00616.44
7.4.80.0150.00319.39
7.4.70.0150.00316.54
7.4.60.0090.01316.51
7.4.50.0090.00616.66
7.4.40.0070.01616.50
7.4.30.0110.00616.54
7.4.00.0070.00715.10
7.3.330.0050.00213.23
7.3.320.0000.00513.20
7.3.310.0000.00716.45
7.3.300.0040.00416.21
7.3.290.0070.00016.35
7.3.280.0090.00816.35
7.3.270.0130.01017.40
7.3.260.0110.00716.40
7.3.250.0100.00816.42
7.3.240.0070.01216.49
7.3.230.0110.00616.44
7.3.210.0110.00616.35
7.3.200.0100.00719.39
7.3.190.0120.00416.60
7.3.180.0140.00816.37
7.3.170.0070.01016.54
7.3.160.0060.00916.34
7.2.330.0100.01016.76
7.2.320.0170.00716.71
7.2.310.0090.00916.77
7.2.300.0090.00916.47
7.2.290.0120.00616.84
7.2.60.0090.00616.60
7.2.00.0040.00819.41
7.1.200.0030.00315.62
7.1.100.0040.00718.17
7.1.70.0040.00717.22
7.1.60.0100.01419.40
7.1.50.0080.00817.05
7.1.00.0070.07322.57
7.0.200.0080.00316.55
7.0.60.0100.04721.69
7.0.50.0070.06317.80
7.0.40.0070.08020.07
7.0.30.0330.07720.06
7.0.20.0370.05320.11
7.0.10.0070.06320.30
7.0.00.0100.03720.08
5.6.280.0030.03320.92
5.6.210.0070.04320.71
5.6.200.0030.07318.22
5.6.190.0170.07320.43
5.6.180.0300.08320.56
5.6.170.0430.07020.37
5.6.160.0230.07320.54
5.6.150.0100.07018.15
5.6.140.0030.08318.20
5.6.130.0030.09318.17
5.6.120.0070.07720.99
5.6.110.0070.08720.90
5.6.100.0100.05720.96
5.6.90.0000.05321.04
5.6.80.0200.06720.30
5.5.350.0300.07320.50
5.5.340.0000.05018.00
5.5.330.0000.09320.45
5.5.320.0200.04020.27
5.5.310.0270.08020.13
5.5.300.0030.05717.94
5.5.290.0130.06317.94
5.5.280.0030.07320.97
5.5.270.0230.07320.80
5.5.260.0200.07320.88
5.5.250.0230.07020.70
5.5.240.0300.07020.35

preferences:
55.5 ms | 401 KiB | 5 Q