3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0" encoding="UTF-8"?> <root> <area> <photographer_id>1</photographer_id> <photographer>John</photographer> <image>a</image> </area> <area> <photographer_id>1</photographer_id> <photographer>John</photographer> <image>b</image> </area> <area> <photographer_id>1</photographer_id> <photographer>John</photographer> <image>c</image> </area> <area> <photographer_id>2</photographer_id> <photographer>Fred</photographer> <image>a</image> </area> </root> XML; $sxe = new SimpleXMLElement($xml); $searchKeyword = "Fred"; $area = $sxe->xpath("//area[contains(translate("photographer",{$searchKeyword}) )]"); print_r($area);

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)
5.6.80.0030.06320.29
5.5.240.0030.07020.29
5.4.400.0030.06719.15
5.4.390.0030.04019.16
5.4.380.0070.03319.25
5.4.370.0130.03718.87
5.4.360.0100.04019.13
5.4.350.0200.04319.25
5.4.340.0130.04019.23
5.4.320.0100.04019.06
5.4.310.0300.02719.09
5.4.300.0230.04019.22
5.4.290.0130.03719.09
5.4.280.0270.04318.88
5.4.270.0170.03719.16
5.4.260.0230.03019.09
5.4.250.0200.03318.97
5.4.240.0200.03719.07
5.4.230.0200.03319.08
5.4.220.0130.04018.97
5.4.210.0200.03018.93
5.4.200.0230.03318.87
5.4.190.0200.04318.98
5.4.180.0070.03719.09
5.4.170.0200.07018.96
5.4.160.0100.04318.83
5.4.150.0130.05019.22
5.4.140.0170.07016.52
5.4.130.0230.06016.50
5.4.120.0270.06016.32
5.4.110.0270.03316.45
5.4.100.0230.07016.26
5.4.90.0200.04716.56
5.4.80.0230.07016.54
5.4.70.0430.03016.62
5.4.60.0200.05316.23
5.4.50.0270.02716.51
5.4.40.0200.05716.33
5.4.30.0270.06316.34
5.4.20.0230.05716.18
5.4.10.0200.06316.51
5.4.00.0130.06715.75
5.3.290.0300.03314.71
5.3.280.0130.03714.46
5.3.270.0130.03714.55
5.3.260.0200.07014.44
5.3.250.0130.04014.70
5.3.240.0200.03314.66
5.3.230.0100.08014.46
5.3.220.0200.06714.50
5.3.210.0270.07314.40
5.3.200.0200.03714.45
5.3.190.0300.06714.52
5.3.180.0200.07314.51
5.3.170.0170.04314.54
5.3.160.0230.03314.47
5.3.150.0130.03714.42
5.3.140.0330.06014.51
5.3.130.0300.05014.50
5.3.120.0270.06314.63
5.3.110.0200.07014.43
5.3.100.0230.05013.98
5.3.90.0270.05314.05
5.3.80.0200.05013.85
5.3.70.0270.06713.87
5.3.60.0130.07713.85
5.3.50.0230.07013.99
5.3.40.0230.03713.93
5.3.30.0270.06313.70
5.3.20.0100.04013.52
5.3.10.0300.06013.53
5.3.00.0300.06013.73
5.2.170.0130.04713.50
5.2.160.0230.03013.50
5.2.150.0170.06013.50
5.2.140.0130.03313.50
5.2.130.0100.04313.50
5.2.120.0270.05313.50
5.2.110.0230.04313.50
5.2.100.0270.04313.50
5.2.90.0200.03313.50
5.2.80.0200.05713.50
5.2.70.0300.05313.50
5.2.60.0170.06013.50
5.2.50.0200.05713.50
5.2.40.0070.05313.50
5.2.30.0070.06713.50
5.2.20.0130.05013.50
5.2.10.0170.05713.50
5.2.00.0170.05313.50
5.1.60.0170.03713.50
5.1.50.0130.02313.50
5.1.40.0230.02313.50
5.1.30.0200.05013.50
5.1.20.0200.03013.50
5.1.10.0100.03313.50
5.1.00.0130.05013.50
5.0.50.0070.03713.50
5.0.40.0070.03713.50
5.0.30.0030.06313.50
5.0.20.0070.04013.50
5.0.10.0030.04013.50
5.0.00.0130.04713.50
4.4.90.0100.01313.50
4.4.80.0170.01713.50
4.4.70.0030.04013.50
4.4.60.0100.03013.50
4.4.50.0030.02713.50
4.4.40.0030.02313.50
4.4.30.0130.02713.50
4.4.20.0200.02313.50
4.4.10.0030.03713.50
4.4.00.0000.05713.50
4.3.110.0030.02013.50
4.3.100.0000.03313.50
4.3.90.0000.03313.50
4.3.80.0100.05013.50
4.3.70.0030.02713.50
4.3.60.0030.03713.50
4.3.50.0030.03313.50
4.3.40.0100.03313.50
4.3.30.0030.03713.50
4.3.20.0030.03713.50
4.3.10.0070.03013.50
4.3.00.0000.02313.50

preferences:
134.36 ms | 1394 KiB | 7 Q