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($this->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.60.0070.01117.13
8.3.50.0060.01223.13
8.3.40.0120.00419.20
8.3.30.0120.00319.52
8.3.20.0060.00320.42
8.3.10.0000.00823.86
8.3.00.0050.00319.76
8.2.180.0120.00318.78
8.2.170.0120.00622.96
8.2.160.0100.00720.60
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0050.00321.11
8.2.110.0030.00722.63
8.2.100.0080.00418.28
8.2.90.0030.00618.22
8.2.80.0080.00018.13
8.2.70.0030.00618.13
8.2.60.0050.00318.05
8.2.50.0000.00918.13
8.2.40.0030.00518.40
8.2.30.0000.00818.41
8.2.20.0000.00818.25
8.2.10.0000.00718.27
8.2.00.0030.00618.21
8.1.280.0150.00625.92
8.1.270.0060.00324.04
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.72
8.1.230.0070.00421.25
8.1.220.0000.00818.04
8.1.210.0040.00419.25
8.1.200.0030.00617.73
8.1.190.0090.00017.73
8.1.180.0040.00418.10
8.1.170.0030.00519.01
8.1.160.0050.00322.37
8.1.150.0050.00219.05
8.1.140.0040.00417.85
8.1.130.0000.00717.99
8.1.120.0050.00217.79
8.1.110.0040.00417.91
8.1.100.0000.00717.89
8.1.90.0000.00717.88
8.1.80.0050.00217.70
8.1.70.0000.00817.71
8.1.60.0040.00418.03
8.1.50.0050.00317.80
8.1.40.0000.00817.82
8.1.30.0050.00318.00
8.1.20.0030.00517.94
8.1.10.0080.00018.01
8.1.00.0030.00617.78
8.0.300.0000.00720.34
8.0.290.0030.00617.13
8.0.280.0040.00418.73
8.0.270.0030.00317.47
8.0.260.0070.00017.45
8.0.250.0040.00417.31
8.0.240.0070.00017.32
8.0.230.0000.00717.22
8.0.220.0000.00817.32
8.0.210.0000.00717.21
8.0.200.0030.00317.22
8.0.190.0000.00717.23
8.0.180.0000.00717.18
8.0.170.0060.00317.20
8.0.160.0040.00417.27
8.0.150.0000.00717.18
8.0.140.0050.00217.08
8.0.130.0000.00613.72
8.0.120.0040.00417.33
8.0.110.0050.00317.15
8.0.100.0040.00417.20
8.0.90.0050.00317.08
8.0.80.0060.00917.20
8.0.70.0040.00417.18
8.0.60.0050.00217.20
8.0.50.0000.00717.30
8.0.30.0090.01017.56
8.0.20.0110.01317.42
8.0.10.0040.00417.48
8.0.00.0090.00917.04
7.4.330.0020.00215.18
7.4.320.0060.00016.89
7.4.300.0060.00016.99
7.4.290.0040.00417.01
7.4.280.0070.00016.97
7.4.270.0030.00416.97
7.4.260.0030.00316.92
7.4.250.0040.00417.03
7.4.240.0000.00717.07
7.4.230.0030.00316.78
7.4.220.0130.01317.07
7.4.210.0130.00617.03
7.4.200.0020.00516.76
7.4.160.0040.01217.05
7.4.150.0160.00717.40
7.4.140.0110.00617.86
7.4.130.0080.00817.10
7.4.120.0100.01017.06
7.4.110.0150.00616.79
7.4.100.0060.01216.84
7.4.90.0180.00317.01
7.4.80.0090.01219.39
7.4.70.0060.00917.09
7.4.60.0040.01317.05
7.4.50.0020.00217.00
7.4.40.0060.01217.17
7.4.30.0130.00917.01
7.4.10.0030.01416.05
7.4.00.0060.01115.67
7.3.330.0030.00513.77
7.3.320.0050.00513.73
7.3.310.0080.00016.54
7.3.300.0030.00316.82
7.3.290.0090.00616.76
7.3.280.0070.01216.71
7.3.270.0180.00017.40
7.3.260.0110.00816.74
7.3.250.0110.00616.86
7.3.240.0060.01217.08
7.3.230.0120.00417.05
7.3.210.0100.01016.96
7.3.200.0090.00919.39
7.3.190.0120.00616.71
7.3.180.0060.00916.70
7.3.170.0080.00816.93
7.3.160.0090.00917.06
7.3.130.0100.00916.05
7.3.120.0070.01016.07
7.3.110.0060.01315.99
7.3.100.0070.00715.76
7.3.90.0050.00816.02
7.3.80.0060.00516.11
7.3.70.0110.00515.91
7.3.60.0080.00316.00
7.3.50.0060.01015.82
7.3.40.0050.01016.00
7.3.30.0080.00615.87
7.3.20.0060.00817.75
7.3.10.0060.00817.77
7.3.00.0070.00717.68
7.2.330.0090.00917.13
7.2.320.0100.00816.98
7.2.310.0120.01316.98
7.2.300.0040.01217.09
7.2.290.0090.00917.18
7.2.260.0110.00816.24
7.2.250.0070.01016.24
7.2.240.0090.00716.17
7.2.230.0050.00816.13
7.2.220.0080.00816.09
7.2.210.0090.00716.23
7.2.200.0080.00416.07
7.2.190.0060.00916.17
7.2.180.0110.00416.12
7.2.170.0090.00516.10
7.2.160.0040.00816.19
7.2.150.0020.01318.04
7.2.140.0070.00718.02
7.2.130.0070.00918.16
7.2.120.0080.00718.08
7.2.110.0060.00918.04
7.2.100.0060.00718.06
7.2.90.0050.00818.18
7.2.80.0000.01317.89
7.2.70.0050.00717.99
7.2.60.0050.01017.88
7.2.50.0060.00818.00
7.2.40.0030.01418.16
7.2.30.0080.00918.14
7.2.20.0080.01017.98
7.2.10.0060.00817.89
7.2.00.0050.00718.78
7.1.330.0070.00617.06
7.1.320.0070.00516.88
7.1.310.0090.00616.95
7.1.300.0020.01016.99
7.1.290.0070.00716.79
7.1.280.0050.01216.83
7.1.270.0070.00516.98
7.1.260.0050.00517.04
7.1.250.0060.00716.93
7.1.240.0060.00616.81
7.1.230.0070.00716.94
7.1.220.0050.00616.92
7.1.210.0060.00817.04
7.1.200.0040.00716.88
7.1.190.0050.00816.95
7.1.180.0080.00316.93
7.1.170.0030.01216.80
7.1.160.0040.00716.98
7.1.150.0090.00317.00
7.1.140.0080.00916.98
7.1.130.0060.00817.01
7.1.120.0020.01216.84
7.1.110.0050.00816.91
7.1.100.0050.00717.32
7.1.90.0060.00617.15
7.1.80.0070.00816.97
7.1.70.0050.00717.17
7.1.60.0060.01217.76
7.1.50.0030.01217.07
7.1.40.0050.01016.85
7.1.30.0090.00516.91
7.1.20.0040.00616.88
7.1.10.0050.00916.95
7.1.00.0090.02718.75
7.0.330.0060.00816.70
7.0.320.0050.00816.46
7.0.310.0050.00716.50
7.0.300.0090.00616.72
7.0.290.0070.00716.42
7.0.280.0050.01016.61
7.0.270.0040.00916.53
7.0.260.0020.01116.50
7.0.250.0080.00716.58
7.0.240.0030.01116.70
7.0.230.0080.00616.56
7.0.220.0060.00616.55
7.0.210.0020.01316.72
7.0.200.0060.00616.73
7.0.190.0110.00116.52
7.0.180.0070.00416.51
7.0.170.0050.00716.51
7.0.160.0030.00816.51
7.0.150.0030.01016.67
7.0.140.0060.02818.37
7.0.130.0060.00716.62
7.0.120.0030.01016.58
7.0.110.0050.00916.51
7.0.100.0100.00216.39
7.0.90.0020.01216.39
7.0.80.0080.00716.26
7.0.70.0080.00616.54
7.0.60.0030.02717.73
7.0.50.0050.02017.06
7.0.40.0010.02516.33
7.0.30.0110.02416.45
7.0.20.0070.02216.55
7.0.10.0070.02816.48
7.0.00.0040.02716.43
5.6.400.0020.01615.57
5.6.390.0090.00315.47
5.6.380.0100.00315.34
5.6.370.0060.00615.55
5.6.360.0030.00915.54
5.6.350.0070.00815.58
5.6.340.0070.00615.61
5.6.330.0050.00515.20
5.6.320.0070.00715.59
5.6.310.0020.01115.58
5.6.300.0080.00515.27
5.6.290.0050.00815.52
5.6.280.0110.02817.32
5.6.270.0100.00315.38
5.6.260.0070.00815.49
5.6.250.0040.00615.50
5.6.240.0040.00915.48
5.6.230.0060.00915.51
5.6.220.0020.01315.38
5.6.210.0070.02017.02
5.6.200.0070.03316.54
5.6.190.0040.02117.39
5.6.180.1370.01517.08
5.6.170.0140.02917.18
5.6.160.0110.02917.13
5.6.150.0110.02016.24
5.6.140.0070.02416.30
5.6.130.0090.01916.38
5.6.120.0070.01717.31
5.6.110.0080.03017.30
5.6.100.0120.02317.34
5.6.90.0040.02117.30
5.6.80.0100.02717.06
5.6.70.1380.01817.00
5.6.60.0050.00815.22
5.6.50.0090.00615.43
5.6.40.0020.01215.39
5.6.30.0050.00915.23
5.6.20.0030.00915.32
5.6.10.0110.00415.45
5.6.00.0060.00915.37
5.5.380.0120.00315.54
5.5.370.0050.00815.37
5.5.360.0010.01015.44
5.5.350.0120.03017.02
5.5.340.0080.03116.27
5.5.330.0070.03216.97
5.5.320.0190.02417.03
5.5.310.0140.02317.24
5.5.300.0120.02816.29
5.5.290.0050.03516.44
5.5.280.0050.03217.29
5.5.270.0100.02717.25
5.5.260.0100.02417.31
5.5.250.0010.03217.00
5.5.240.0110.02916.92
5.5.230.0020.01315.30
5.5.220.0050.00915.38
5.5.210.0050.00815.46
5.5.200.0100.00215.30
5.5.190.0020.00915.22
5.5.180.0070.00715.41
5.5.170.0060.00715.21
5.5.160.0100.00515.38
5.5.150.0060.00615.36
5.5.140.0050.00715.50
5.5.130.0030.01315.42
5.5.120.0030.00815.36
5.5.110.0000.01115.20
5.5.100.0080.00715.32
5.5.90.0080.00915.25
5.5.80.0040.00615.37
5.5.70.0060.00815.38
5.5.60.0070.00715.17
5.5.50.0020.01215.21
5.5.40.0100.00415.37
5.5.30.0050.00915.47
5.5.20.0100.00515.32
5.5.10.0020.01315.25
5.5.00.0080.00815.12
5.4.450.0100.01514.72
5.4.440.0090.01714.76
5.4.430.0080.01914.54
5.4.420.0120.01514.55
5.4.410.0130.01414.62
5.4.400.0100.01914.56
5.4.390.0120.01414.47
5.4.380.0110.02514.69
5.4.370.0130.02614.54
5.4.360.0100.01714.45
5.4.350.0150.02714.53
5.4.340.0080.02014.43
5.4.330.0030.00812.26
5.4.320.0160.02414.58
5.4.310.0110.02614.54
5.4.300.0070.02214.47
5.4.290.0100.01714.45
5.4.280.0110.01614.47
5.4.270.0100.02514.48
5.4.260.0090.02114.42
5.4.250.0160.02114.46
5.4.240.0140.02614.50
5.4.230.0130.01714.57
5.4.220.0110.02614.39
5.4.210.0130.01914.48
5.4.200.0160.02514.55
5.4.190.0180.02214.29
5.4.180.0120.02214.50
5.4.170.0120.02714.56
5.4.160.0120.01614.54
5.4.150.0100.01914.43
5.4.140.0110.02313.56
5.4.130.0150.01913.69
5.4.120.0100.01613.55
5.4.110.0120.02013.63
5.4.100.0110.01713.68
5.4.90.0140.02913.70
5.4.80.0110.01713.69
5.4.70.0110.01613.68
5.4.60.0090.02913.73
5.4.50.0100.01613.58
5.4.40.0080.02113.60
5.4.30.0120.02513.56
5.4.20.0140.02513.53
5.4.10.0090.02113.49
5.4.00.0110.02713.48
5.3.290.0200.04314.68
5.3.280.0330.06714.61
5.3.270.0300.07014.53
5.3.260.0230.04014.63
5.3.250.0300.03314.60
5.3.240.0200.06014.52
5.3.230.0200.04314.51
5.3.220.0300.05714.49
5.3.210.0400.06314.75
5.3.200.0300.03014.65
5.3.190.0300.04714.48
5.3.180.0200.04014.73
5.3.170.0330.02714.57
5.3.160.0270.06014.49
5.3.150.0230.03714.73
5.3.140.0270.07314.48
5.3.130.0370.06714.65
5.3.120.0330.06714.63
5.3.110.0330.06714.67
5.3.100.0230.05314.08
5.3.90.0230.05314.00
5.3.80.0230.04014.09
5.3.70.0200.04014.18
5.3.60.0270.05313.98
5.3.50.0270.05314.06
5.3.40.0430.05313.87
5.3.30.0300.06314.03
5.3.20.0330.06713.59
5.3.10.0370.06013.77
5.3.00.0270.04013.65
5.2.170.0200.04712.30
5.2.160.0230.03712.30
5.2.150.0270.06012.30
5.2.140.0230.03312.30
5.2.130.0200.06012.30
5.2.120.0230.05712.30
5.2.110.0300.04012.30
5.2.100.0200.02712.30
5.2.90.0170.03012.30
5.2.80.0230.04012.30
5.2.70.0230.03712.30
5.2.60.0230.05712.30
5.2.50.0230.03312.30
5.2.40.0170.04712.30
5.2.30.0170.04312.30
5.2.20.0130.03312.30
5.2.10.0200.05712.31
5.2.00.0130.03312.31
5.1.60.0170.02712.31
5.1.50.0200.03312.31
5.1.40.0200.04312.31
5.1.30.0200.03312.31
5.1.20.0170.05712.31
5.1.10.0170.04012.31
5.1.00.0170.03312.31
5.0.50.0130.03012.31
5.0.40.0100.03712.31
5.0.30.0100.06312.31
5.0.20.0100.01712.31
5.0.10.0070.02012.31
5.0.00.0130.06012.31
4.4.90.0030.02012.30
4.4.80.0170.02712.30
4.4.70.0100.03312.31
4.4.60.0200.03012.31
4.4.50.0170.02312.31
4.4.40.0100.04012.31
4.4.30.0070.02012.31
4.4.20.0100.03012.31
4.4.10.0130.03012.31
4.4.00.0100.05012.31
4.3.110.0070.02012.31
4.3.100.0070.03712.31
4.3.90.0030.01712.31
4.3.80.0100.04712.31
4.3.70.0070.02712.31
4.3.60.0100.03012.31
4.3.50.0070.03312.31
4.3.40.0030.03712.31
4.3.30.0000.02312.31
4.3.20.0030.01712.31
4.3.10.0130.02312.31
4.3.00.0070.02712.31

preferences:
40.48 ms | 401 KiB | 5 Q