3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ "city" => "South Boston", "title" => "The good stuff", "price" => "$15" ]; $_SERVER["REQUEST_URI"] = "/I/dont/know?" . http_build_query($_GET); $dir_auth1 = "aidan"; $xml = simplexml_load_string('<root/>'); $entry = $xml->addChild('link'); $entry->addChild('title', chop($_GET['city'] .' - '. $_GET['title']) .' for '. $_GET['price'] .' from @'. $dir_auth1); $entry->addChild('url', 'http://boston.lit.life' . $_SERVER['REQUEST_URI']); echo $xml->asXML(); ?>

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.5.10.0140.00516.98
8.5.00.0120.01120.29
8.4.150.0020.00014.05
8.4.140.0100.01218.11
8.4.130.0050.00518.07
8.4.120.0130.00720.68
8.4.110.0060.00322.68
8.4.100.0120.00919.05
8.4.90.0100.01019.14
8.4.80.0130.00720.75
8.4.70.0090.01018.17
8.4.60.0120.01019.05
8.4.50.0110.01118.85
8.4.40.0130.00619.98
8.4.30.0060.01320.03
8.4.20.0080.00018.11
8.4.10.0050.00520.00
8.3.280.0120.00918.59
8.3.270.0100.01016.86
8.3.260.0140.00616.96
8.3.250.0120.00618.99
8.3.240.0090.00921.46
8.3.230.0100.01017.12
8.3.220.0100.00719.14
8.3.210.0100.00817.20
8.3.200.0040.00517.20
8.3.190.0130.00617.41
8.3.180.0110.00817.55
8.3.170.0150.00319.13
8.3.160.0120.00617.66
8.3.150.0130.00717.52
8.3.140.0000.00917.05
8.3.130.0050.00517.13
8.3.120.0040.00421.16
8.3.110.0040.00417.14
8.3.100.0000.00816.92
8.3.90.0040.00426.77
8.3.80.0090.00017.13
8.3.70.0060.00919.06
8.3.60.0120.00316.88
8.3.50.0150.01017.53
8.3.40.0070.01519.21
8.3.30.0170.00019.22
8.3.20.0030.00520.54
8.3.10.0000.00822.52
8.3.00.0040.00424.03
8.2.290.0130.00420.75
8.2.280.0140.00618.68
8.2.270.0120.00619.18
8.2.260.0110.00716.91
8.2.250.0040.00417.20
8.2.240.0030.00619.54
8.2.230.0120.00622.58
8.2.220.0080.00024.06
8.2.210.0120.00626.77
8.2.200.0100.00018.79
8.2.190.0150.00316.88
8.2.180.0070.01417.00
8.2.170.0130.00322.96
8.2.160.0040.01120.75
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0030.00718.38
8.2.110.0060.00320.72
8.2.100.0090.00318.28
8.2.90.0000.00920.01
8.2.80.0000.00918.41
8.2.70.0040.00418.18
8.2.60.0000.00918.47
8.2.50.0080.00018.47
8.2.40.0040.00421.02
8.2.30.0040.00419.68
8.2.20.0000.00818.38
8.2.10.0050.00318.48
8.2.00.0040.00418.31
8.1.330.0100.00822.48
8.1.320.0130.00616.31
8.1.310.0000.00817.10
8.1.300.0050.00516.98
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0060.00922.39
8.1.260.0120.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.16
8.1.230.0070.00421.16
8.1.220.0000.00818.00
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0030.00517.60
8.1.180.0000.00818.10
8.1.170.0040.00418.89
8.1.160.0000.00719.11
8.1.150.0000.00820.54
8.1.140.0070.00019.88
8.1.130.0060.00320.87
8.1.120.0040.00417.68
8.1.110.0040.00417.63
8.1.100.0040.00417.71
8.1.90.0080.00017.76
8.1.80.0000.00917.65
8.1.70.0040.00417.60
8.1.60.0040.00417.88
8.1.50.0080.00017.72
8.1.40.0140.00317.66
8.1.30.0040.00417.87
8.1.20.0030.00517.81
8.1.10.0040.00417.91
8.1.00.0060.00317.82
8.0.300.0070.00019.85
8.0.290.0030.00617.00
8.0.280.0050.00318.67
8.0.270.0030.00617.52
8.0.260.0070.00020.61
8.0.250.0070.00017.30
8.0.240.0040.00417.13
8.0.230.0000.00817.18
8.0.220.0040.00417.10
8.0.210.0040.00417.25
8.0.200.0000.00617.25
8.0.190.0000.00717.22
8.0.180.0070.00017.30
8.0.170.0070.00017.25
8.0.160.0040.00417.25
8.0.150.0070.00017.16
8.0.140.0040.00417.08
8.0.130.0030.00313.74
8.0.120.0070.00017.21
8.0.110.0050.00217.16
8.0.100.0000.00717.10
8.0.90.0040.00417.25
8.0.80.0080.00817.21
8.0.70.0040.00417.01
8.0.60.0000.00717.25
8.0.50.0040.00417.23
8.0.30.0080.00917.33
8.0.20.0080.01217.40
8.0.10.0040.00417.20
8.0.00.0060.01217.06
7.4.330.0020.00215.55
7.4.320.0000.00616.94
7.4.300.0060.00016.70
7.4.290.0050.00216.94
7.4.280.0000.00716.80
7.4.270.0080.00016.79
7.4.260.0000.00716.77
7.4.250.0050.00216.73
7.4.240.0000.00716.91
7.4.230.0040.00416.90
7.4.220.0000.00016.79
7.4.210.0060.01016.90
7.4.200.0040.00416.66
7.4.160.0060.01016.71
7.4.150.0170.00017.40
7.4.140.0120.00817.86
7.4.130.0030.01316.75
7.4.120.0090.00916.80
7.4.110.0110.00716.75
7.4.100.0100.00716.94
7.4.90.0100.00716.91
7.4.80.0060.01619.39
7.4.70.0070.01116.94
7.4.60.0140.00316.91
7.4.50.0070.00716.90
7.4.40.0070.01016.96
7.4.30.0060.01516.88
7.4.00.0030.01415.10
7.3.330.0030.00313.47
7.3.320.0000.00513.31
7.3.310.0000.00716.67
7.3.300.0000.00616.75
7.3.290.0000.00716.64
7.3.280.0100.00716.64
7.3.270.0030.01317.40
7.3.260.0050.01816.72
7.3.250.0080.01116.73
7.3.240.0100.00716.78
7.3.230.0030.01316.61
7.3.210.0060.01216.68
7.3.200.0100.00616.74
7.3.190.0090.00716.75
7.3.180.0130.00316.90
7.3.170.0090.00716.63
7.3.160.0080.00816.69
7.2.330.0170.00616.87
7.2.320.0090.01216.75
7.2.310.0120.01016.67
7.2.300.0110.01116.64
7.2.290.0070.01116.66
7.2.60.0030.01016.94
7.1.200.0040.00815.71
7.1.90.0060.01018.44
7.1.80.0060.01218.31
7.1.70.0060.01217.44
7.1.60.0150.01335.23
7.1.50.0160.01034.63
7.1.40.0160.01234.56
7.1.30.0160.01034.64
7.1.20.0170.01034.58
7.1.10.0090.00616.84
7.1.00.0030.01316.84
7.0.230.0100.00618.11
7.0.220.0080.01017.93
7.0.210.0060.00916.57
7.0.200.0030.00916.98
7.0.190.0030.00916.78
7.0.180.0000.01316.48
7.0.170.0060.00616.35
7.0.160.0070.00716.55
7.0.150.0040.01016.50
7.0.140.0030.01016.65
7.0.130.0060.00616.54
7.0.120.0040.00816.68
7.0.110.0000.01316.50
7.0.100.0060.00616.28
7.0.90.0070.00716.61
7.0.80.0040.00816.68
7.0.70.0030.01016.34
7.0.60.0030.00916.16
7.0.50.0060.00616.53
7.0.40.0030.00916.63
7.0.30.0040.00816.82
7.0.20.0090.00616.54
7.0.10.0100.00316.70
7.0.00.0060.00616.58

preferences:
21.28 ms | 403 KiB | 5 Q