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,static::REPORT_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 $imp->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.70.0110.00418.56
8.3.60.0000.01518.18
8.3.50.0110.01021.19
8.3.40.0110.00418.65
8.3.30.0130.00318.71
8.3.20.0060.00320.38
8.3.10.0080.00021.77
8.3.00.0070.00023.53
8.2.190.0040.01116.88
8.2.180.0120.00318.20
8.2.170.0040.01522.96
8.2.160.0130.00719.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.07
8.2.120.0080.00826.35
8.2.110.0000.01020.97
8.2.100.0060.00617.84
8.2.90.0030.00817.75
8.2.80.0030.00619.32
8.2.70.0040.00417.80
8.2.60.0100.00017.80
8.2.50.0040.00418.10
8.2.40.0050.00320.51
8.2.30.0070.00019.46
8.2.20.0090.00017.73
8.2.10.0040.00418.16
8.2.00.0090.00018.03
8.1.280.0070.00725.92
8.1.270.0130.00622.13
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0040.00422.18
8.1.230.0080.00419.09
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0040.00420.80
8.1.150.0000.01018.84
8.1.140.0080.00019.53
8.1.130.0000.00717.78
8.1.120.0040.00417.51
8.1.110.0030.00617.42
8.1.100.0000.00817.53
8.1.90.0000.00717.52
8.1.80.0040.00417.51
8.1.70.0070.00017.54
8.1.60.0040.00417.65
8.1.50.0000.00817.56
8.1.40.0000.00817.52
8.1.30.0060.00317.67
8.1.20.0030.00617.66
8.1.10.0050.00217.61
8.1.00.0030.00517.56
8.0.300.0040.00419.66
8.0.290.0050.00316.75
8.0.280.0040.00418.59
8.0.270.0000.00717.29
8.0.260.0050.00317.29
8.0.250.0030.00317.06
8.0.240.0030.00317.09
8.0.230.0000.00617.08
8.0.220.0040.00417.00
8.0.210.0030.00316.98
8.0.200.0000.00816.91
8.0.190.0040.00417.04
8.0.180.0070.00016.95
8.0.170.0020.00517.05
8.0.160.0040.00416.95
8.0.150.0040.00717.02
8.0.140.0040.00416.98
8.0.130.0000.00613.46
8.0.120.0040.00416.84
8.0.110.0000.00716.88
8.0.100.0000.00716.89
8.0.90.0040.00416.97
8.0.80.0100.01017.02
8.0.70.0070.00016.80
8.0.60.0070.00016.83
8.0.50.0000.00716.86
8.0.30.0120.00616.98
8.0.20.0050.01317.40
8.0.10.0000.00817.07
8.0.00.0060.01316.73
7.4.330.0000.00516.85
7.4.320.0000.00616.59
7.4.300.0080.00016.49
7.4.290.0070.00316.53
7.4.280.0000.00716.63
7.4.270.0030.00316.47
7.4.260.0100.00016.48
7.4.250.0000.00716.66
7.4.240.0000.00716.63
7.4.230.0000.00816.66
7.4.220.0120.00916.66
7.4.210.0110.00416.59
7.4.200.0040.00416.53
7.4.160.0080.00816.67
7.4.150.0070.01017.40
7.4.140.0130.01017.86
7.4.130.0100.01016.51
7.4.120.0090.00816.68
7.4.110.0130.01016.59
7.4.100.0060.01116.50
7.4.90.0110.00716.55
7.4.80.0100.00719.39
7.4.70.0120.00616.69
7.4.60.0100.00716.43
7.4.50.0060.00916.60
7.4.40.0120.00616.40
7.4.30.0050.01316.71
7.4.00.0050.01114.99
7.3.330.0060.00013.20
7.3.320.0030.00313.22
7.3.310.0000.00716.23
7.3.300.0030.00316.31
7.3.290.0000.00716.20
7.3.280.0090.00816.34
7.3.270.0140.00317.40
7.3.260.0040.01316.42
7.3.250.0130.00716.45
7.3.240.0070.01016.33
7.3.230.0100.00716.39
7.3.210.0130.00416.48
7.3.200.0100.01319.39
7.3.190.0110.00516.40
7.3.180.0090.00816.62
7.3.170.0060.01116.34
7.3.160.0090.00616.47
7.3.120.0050.01315.97
7.3.110.0050.01315.86
7.3.100.0030.01215.88
7.3.90.0030.01216.02
7.3.80.0060.00816.05
7.3.70.0020.01316.03
7.3.60.0060.01016.02
7.3.50.0090.00515.83
7.3.40.0050.00816.00
7.3.30.0080.00516.02
7.3.20.0040.00916.85
7.3.10.0110.00216.70
7.3.00.0070.00716.82
7.2.330.0060.01216.41
7.2.320.0070.01016.76
7.2.310.0110.00616.61
7.2.300.0100.00616.66
7.2.290.0140.00316.63
7.2.250.0080.00814.92
7.2.240.0060.01215.99
7.2.230.0100.00716.06
7.2.220.0040.00916.10
7.2.210.0030.01116.20
7.2.200.0060.01016.10
7.2.190.0040.01116.09
7.2.180.0040.00915.93
7.2.170.0050.01016.03
7.2.160.0030.01317.15
7.2.150.0060.00917.15
7.2.140.0040.00717.15
7.2.130.0090.00916.92
7.2.120.0120.00616.95
7.2.110.0130.00517.09
7.2.100.0070.00816.94
7.2.90.0090.01017.00
7.2.80.0070.01016.91
7.2.70.0060.00916.95
7.2.60.0090.01016.91
7.2.50.0110.00417.06
7.2.40.0030.01116.97
7.2.30.0050.00716.93
7.2.20.0050.00716.93
7.2.10.0090.00817.03
7.2.00.0050.01017.61
7.1.330.0070.00716.37
7.1.320.0030.01316.24
7.1.310.0090.00516.39
7.1.300.0000.01416.27
7.1.290.0050.00916.41
7.1.280.0060.00716.37
7.1.270.0050.00916.29
7.1.260.0090.00516.41
7.1.250.0070.00616.40
7.1.200.0060.00315.70
7.1.100.0030.00717.90
7.1.70.0000.01017.13
7.1.60.0130.01319.40
7.1.50.0100.01016.87
7.1.00.0030.07722.54
7.0.200.0070.00316.84
7.0.60.0130.04321.72
7.0.50.0030.07717.69
7.0.40.0100.09320.04
7.0.30.0300.08020.13
7.0.20.0170.04720.16
7.0.10.0130.08320.02
7.0.00.0070.04020.19
5.6.280.0000.03320.90
5.6.210.0030.04020.78
5.6.200.0030.08318.19
5.6.190.0100.03720.53
5.6.180.0270.06320.62
5.6.170.0400.07720.51
5.6.160.0100.08720.61
5.6.150.0070.07718.21
5.6.140.0000.04718.07
5.6.130.0130.05718.21
5.6.120.0070.04321.00
5.6.110.0030.08321.06
5.6.100.0100.04020.98
5.6.90.0130.03321.01
5.6.80.0070.06720.39
5.5.350.0400.06320.31
5.5.340.0070.08317.98
5.5.330.0070.04320.21
5.5.320.0130.04720.29
5.5.310.0600.03320.26
5.5.300.0130.06017.91
5.5.290.0070.09017.95
5.5.280.0030.06020.81
5.5.270.0300.03720.88
5.5.260.0170.07720.65
5.5.250.0130.06320.77
5.5.240.0270.06720.05

preferences:
49.9 ms | 401 KiB | 5 Q