3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DudenResponse { protected $response; public function __construct($response) { $this->response = $response; $this ->stripShit() ->decode() ->mockXML(); } protected function stripShit() { $this->response = substr($response, 36-1); return $this; } protected function decode() { $response = preg_replace("/\\\\u([0-9a-f]{3,4})/i", "&#x\\1;", $this->response); $this->response = html_entity_decode($response, null, 'UTF-8'); return $this; } protected function mockXML() { $this->response = str_replace([ '<?dpf ', ' ?>', '?>' ], [ '<', '>', '>' ], $this->response); return $this; } public function get() { return $this->response; } public function __toString() { return $this->get(); } } $response = "0;78d13qqoglyszmorspfwfdmwffgnubgr;\u003c?dpf sent len=\"1\"?\u003e\u003c?dpf orth code=\"unknown\" prop=\"Lesen;Lehnen;Lehren;Leasen;Leisen\" ?\u003elehsen\u003c?dpf /orth ?\u003e\u003c?dpf /sent ?\u003e"; /*$response = preg_replace("/\\\\u([0-9a-f]{3,4})/i", "&#x\\1;", $response); $response = html_entity_decode($response , null, 'UTF-8'); $response = str_replace([ '<?dpf ', ' ?>', '?>' ], [ '<', '>', '>' ], $response); $response = substr($response, 36-1);*/ $response = new DudenResponse($response); echo $response; echo "\n"; $xml = simplexml_load_string($response); foreach ($xml as $node) { echo $node . " => "; print_r(explode(';', $node->attributes()['prop'])); echo "\n\n"; }

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.0120.00316.88
8.3.60.0220.00316.88
8.3.50.0100.00923.09
8.3.40.0090.00919.03
8.3.30.0080.00819.34
8.3.20.0080.00020.43
8.3.10.0080.00023.53
8.3.00.0040.00419.75
8.2.180.0040.01218.91
8.2.170.0070.01022.96
8.2.160.0140.00320.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00021.02
8.2.110.0090.00020.55
8.2.100.0060.00618.09
8.2.90.0090.00019.04
8.2.80.0060.00318.00
8.2.70.0050.00317.88
8.2.60.0000.00818.05
8.2.50.0090.00018.07
8.2.40.0030.00519.95
8.2.30.0080.00018.30
8.2.20.0040.00417.85
8.2.10.0040.00418.26
8.2.00.0050.00518.05
8.1.280.0100.01025.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.36
8.1.230.0120.00019.25
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.63
8.1.190.0050.00317.38
8.1.180.0080.00018.10
8.1.170.0050.00318.95
8.1.160.0040.00422.11
8.1.150.0020.00518.84
8.1.140.0080.00017.64
8.1.130.0040.00417.98
8.1.120.0000.00717.66
8.1.110.0040.00417.70
8.1.100.0000.00717.72
8.1.90.0000.00717.61
8.1.80.0000.00817.66
8.1.70.0000.00717.63
8.1.60.0040.00417.67
8.1.50.0000.00917.70
8.1.40.0040.00417.76
8.1.30.0000.00817.88
8.1.20.0050.00217.85
8.1.10.0070.00017.79
8.1.00.0000.00817.75
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0000.00718.49
8.0.270.0000.00717.37
8.0.260.0030.00317.32
8.0.250.0070.00017.20
8.0.240.0040.00417.22
8.0.230.0050.00217.09
8.0.220.0070.00017.17
8.0.210.0050.00217.13
8.0.200.0050.00317.18
8.0.190.0000.00717.19
8.0.180.0070.00017.15
8.0.170.0050.00317.18
8.0.160.0000.00817.20
8.0.150.0070.00016.95
8.0.140.0040.00417.09
8.0.130.0030.00313.62
8.0.120.0030.00517.15
8.0.110.0000.00817.19
8.0.100.0000.00717.25
8.0.90.0000.00716.98
8.0.80.0090.00617.13
8.0.70.0000.00717.04
8.0.60.0020.00517.04
8.0.50.0050.00217.20
8.0.30.0110.01017.43
8.0.20.0080.01017.42
8.0.10.0030.00517.07
8.0.00.0090.00916.94
7.4.330.0060.00015.10
7.4.320.0030.00316.87
7.4.300.0030.00316.78
7.4.290.0030.00316.90
7.4.280.0030.00516.83
7.4.270.0000.00716.93
7.4.260.0030.00316.84
7.4.250.0000.00716.71
7.4.240.0040.00416.79
7.4.230.0000.00816.56
7.4.220.0030.01316.88
7.4.210.0130.00616.93
7.4.200.0080.00016.86
7.4.160.0060.01016.77
7.4.150.0040.01417.40
7.4.140.0050.01217.86
7.4.130.0100.00716.80
7.4.120.0100.00716.73
7.4.110.0060.01316.94
7.4.100.0070.01016.84
7.4.90.0060.01216.74
7.4.80.0030.01519.39
7.4.70.0160.00016.74
7.4.60.0070.01016.61
7.4.50.0020.00216.97
7.4.40.0090.00916.77
7.4.30.0090.00616.66
7.4.00.0110.00715.22
7.3.330.0000.00913.45
7.3.320.0000.00813.60
7.3.310.0000.00716.49
7.3.300.0030.00316.40
7.3.290.0090.00616.54
7.3.280.0110.00716.51
7.3.270.0070.01517.40
7.3.260.0090.00916.96
7.3.250.0110.00716.70
7.3.240.0130.01016.80
7.3.230.0070.01016.71
7.3.210.0150.00316.66
7.3.200.0100.00619.39
7.3.190.0130.01016.45
7.3.180.0140.00716.73
7.3.170.0070.01016.54
7.3.160.0060.01316.61
7.2.330.0070.01016.83
7.2.320.0080.00816.83
7.2.310.0140.01016.94
7.2.300.0030.01416.94
7.2.290.0070.01716.98
7.2.00.0040.00820.02
7.1.100.0340.00312.08
7.1.70.0000.00817.29
7.1.60.0090.01519.40
7.1.50.0040.01217.31
7.1.00.0100.07022.29
7.0.200.0000.00716.82
7.0.140.0030.07322.16
7.0.110.0270.06320.03
7.0.100.0430.04319.93
7.0.90.0470.07019.98
7.0.80.0330.04019.96
7.0.70.0570.07020.01
7.0.60.0470.07720.01
7.0.50.0100.04320.00
7.0.40.0000.04319.77
7.0.30.0030.03319.79
7.0.20.0000.04319.84
7.0.10.0000.03719.74
7.0.00.0000.03719.91
5.6.280.0030.07320.94
5.6.260.0100.07720.64
5.6.250.0070.07720.63
5.6.240.0130.05720.68
5.6.230.0100.07720.90
5.6.220.0000.06720.73
5.6.210.0100.03320.63
5.6.200.0030.04320.48
5.6.190.0000.04320.52
5.6.180.0030.03320.61
5.6.170.0130.03020.66
5.6.160.0100.02720.68
5.6.150.0000.03720.48
5.6.140.0130.03020.56
5.6.130.0000.03720.59
5.6.120.0130.06320.66
5.6.110.0070.03320.63
5.6.100.0030.03320.46
5.6.90.0000.04320.55
5.6.80.0070.03720.02
5.6.70.0030.03720.11
5.6.60.0030.04020.00
5.6.50.0070.03019.98
5.6.40.0000.03320.08
5.6.30.0030.03319.96
5.6.20.0000.04320.01
5.6.10.0000.03720.25
5.6.00.0070.03720.01
5.5.380.0000.04317.73
5.5.370.0070.04717.70
5.5.360.0030.04017.56
5.5.350.0100.07017.77
5.5.340.0030.04018.13
5.5.330.0030.04018.16
5.5.320.0070.04018.13
5.5.310.0030.04017.89
5.5.300.0030.04017.97
5.5.290.0030.04017.95
5.5.280.0030.03318.13
5.5.270.0000.04318.28
5.5.260.0030.04018.14
5.5.250.0070.04017.74
5.5.240.0030.03717.70
5.5.230.0100.02717.54
5.5.220.0030.04317.68
5.5.210.0000.04317.33
5.5.200.0070.03317.53
5.5.190.0070.03717.30
5.5.180.0070.03717.47
5.5.160.0030.03017.28
5.5.150.0100.03017.47
5.5.140.0030.03317.30
5.5.130.0030.03017.64
5.5.120.0030.03717.51
5.5.110.0000.04317.25
5.5.100.0030.03017.54
5.5.90.0000.04017.56
5.5.80.0030.03717.34
5.5.70.0100.03017.07
5.5.60.0000.04317.55
5.5.50.0000.03317.34
5.5.40.0030.06017.41
5.5.30.0000.04717.37
5.5.20.0030.06717.19
5.5.10.0030.07317.53
5.5.00.0030.05017.36
5.4.450.0070.03019.34
5.4.440.0070.03719.53
5.4.430.0070.03019.45
5.4.420.0100.02719.48
5.4.410.0030.03719.36
5.4.400.0100.02319.23
5.4.390.0030.04318.95
5.4.380.0030.03718.93
5.4.370.0000.04019.03
5.4.360.0030.04019.01
5.4.350.0030.03719.08
5.4.340.0070.03319.17
5.4.320.0000.03319.32
5.4.310.0000.04019.00
5.4.300.0000.04018.98
5.4.290.0000.03318.98
5.4.280.0030.03719.00
5.4.270.0070.03719.07
5.4.260.0030.03019.33
5.4.250.0070.03719.00
5.4.240.0030.03719.31
5.4.230.0000.03319.07
5.4.220.0000.03319.03
5.4.210.0070.03319.07
5.4.200.0070.03019.04
5.4.190.0030.04019.04
5.4.180.0030.07319.15
5.4.170.0030.06319.26
5.4.160.0030.04718.99
5.4.150.0030.07319.28
5.4.140.0030.04316.39
5.4.130.0070.06016.51
5.4.120.0000.04016.46
5.4.110.0070.06716.50
5.4.100.0100.03316.54
5.4.90.0070.07716.61
5.4.80.0070.07316.64
5.4.70.0070.06716.55
5.4.60.0130.04316.63
5.4.50.0130.05716.48
5.4.40.0070.05316.51
5.4.30.0070.05316.24
5.4.20.0070.06016.57
5.4.10.0000.04016.47
5.4.00.0000.03715.81
5.3.290.0100.03714.71
5.3.280.0030.03014.63
5.3.270.0100.07014.75
5.3.260.0070.06014.75
5.3.250.0000.08014.76
5.3.240.0070.06714.61
5.3.230.0070.07314.62
5.3.220.0030.03714.55
5.3.210.0070.03314.72
5.3.200.0030.04314.61
5.3.190.0030.03714.60
5.3.180.0100.04014.59
5.3.170.0170.06714.55
5.3.160.0000.08714.58
5.3.150.0070.06014.57
5.3.140.0000.04014.70
5.3.130.0030.04314.55
5.3.120.0030.05014.64
5.3.110.0030.05014.70
5.3.100.0030.03714.55
5.3.90.0030.03714.55
5.3.80.0030.08014.55
5.3.70.0070.04714.55
5.3.60.0100.06714.55
5.3.50.0030.05714.55
5.3.40.0030.07714.55
5.3.30.0070.07014.55
5.3.20.0000.07714.55
5.3.10.0000.03714.55
5.3.00.0030.06314.55
5.2.170.0070.04014.55
5.2.160.0100.04714.55
5.2.150.0100.04714.55
5.2.140.0030.04714.55
5.2.130.0000.03014.55
5.2.120.0030.03714.55
5.2.110.0030.05714.55
5.2.100.0000.03714.55
5.2.90.0030.05314.55
5.2.80.0000.03714.55
5.2.70.0070.06714.55
5.2.60.0000.03714.55
5.2.50.0130.02714.55
5.2.40.0000.03014.55
5.2.30.0100.05314.55
5.2.20.0030.02714.55
5.2.10.0030.05014.55
5.2.00.0070.02314.55
5.1.60.0000.03314.55
5.1.50.0070.03314.55
5.1.40.0030.03714.55
5.1.30.0000.02714.55
5.1.20.0070.02014.55
5.1.10.0070.02314.55
5.1.00.0030.04314.55
5.0.50.0000.03714.55
5.0.40.0000.02314.55
5.0.30.0000.03714.55
5.0.20.0000.02014.55
5.0.10.0000.02014.55
5.0.00.0030.06014.55
4.4.90.0030.01314.55
4.4.80.0000.02714.55
4.4.70.0000.03714.55
4.4.60.0030.03014.55
4.4.50.0000.02014.55
4.4.40.0000.04314.55
4.4.30.0030.03014.55
4.4.20.0000.02014.55
4.4.10.0030.01314.55
4.4.00.0000.04014.55
4.3.110.0030.01314.55
4.3.100.0000.01314.55
4.3.90.0000.01714.55
4.3.80.0000.02014.55
4.3.70.0000.01314.55
4.3.60.0030.02314.55
4.3.50.0000.02314.55
4.3.40.0000.02314.55
4.3.30.0070.02714.55
4.3.20.0030.03314.55
4.3.10.0000.03014.55
4.3.00.0100.02714.55

preferences:
60.67 ms | 401 KiB | 5 Q