3v4l.org

run code in 300+ PHP versions simultaneously
<?php $city = "San Francisco"; $state = "CA"; $event = "SIGGRAPH"; $location_vars = array("city", "state"); $result = compact("event", "nothing_here", $location_vars); print_r($result['event'); ?>

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.4.340.0040.04412.01
5.4.320.0090.03712.50
5.4.310.0100.05212.49
5.4.300.0060.05412.50
5.4.290.0100.05012.49
5.4.280.0090.04812.39
5.4.270.0070.04912.39
5.4.260.0030.05612.39
5.4.250.0080.05812.39
5.4.240.0120.03812.39
5.4.230.0050.04312.38
5.4.220.0110.03712.38
5.4.210.0060.03912.38
5.4.200.0100.03912.38
5.4.190.0060.04412.38
5.4.180.0060.04012.38
5.4.170.0070.04212.39
5.4.160.0090.03612.38
5.4.150.0110.03312.38
5.4.140.0060.04312.07
5.4.130.0130.04112.05
5.4.120.0060.06212.01
5.4.110.0070.05612.01
5.4.100.0100.04312.01
5.4.90.0090.05412.01
5.4.80.0060.05312.01
5.4.70.0090.04712.01
5.4.60.0100.03812.00
5.4.50.0070.06412.01
5.4.40.0090.03511.99
5.4.30.0080.05811.99
5.4.20.0130.03511.98
5.4.10.0110.04011.99
5.4.00.0080.04911.48
5.3.290.0110.05112.80
5.3.280.0090.04212.71
5.3.270.0080.04012.72
5.3.260.0070.04312.72
5.3.250.0080.04012.72
5.3.240.0090.04612.72
5.3.230.0130.04512.71
5.3.220.0070.04212.68
5.3.210.0090.05212.68
5.3.200.0090.06112.68
5.3.190.0150.05312.68
5.3.180.0090.03512.67
5.3.170.0090.04012.67
5.3.160.0080.03712.68
5.3.150.0060.04812.67
5.3.140.0070.04112.66
5.3.130.0150.06712.66
5.3.120.0070.05112.66
5.3.110.0100.04212.66
5.3.100.0190.05912.12
5.3.90.0110.04812.08
5.3.80.0080.04312.07
5.3.70.0060.04912.08
5.3.60.0090.04612.07
5.3.50.0060.05012.00
5.3.40.0060.04312.00
5.3.30.0140.04611.95
5.3.20.0060.04311.72
5.3.10.0060.03611.70
5.3.00.0070.04211.68
5.2.170.0060.0329.18
5.2.160.0060.0419.18
5.2.150.0070.0429.19
5.2.140.0080.0299.18
5.2.130.0090.0459.14
5.2.120.0030.0369.14
5.2.110.0060.0369.14
5.2.100.0060.0369.14
5.2.90.0090.0339.14
5.2.80.0090.0289.14
5.2.70.0060.0339.14
5.2.60.0080.0399.09
5.2.50.0100.0589.07
5.2.40.0110.0369.04
5.2.30.0100.0379.02
5.2.20.0210.0489.00
5.2.10.0070.0468.93
5.2.00.0180.0718.78
5.1.60.0070.0258.07
5.1.50.0140.0578.07
5.1.40.0060.0458.05
5.1.30.0060.0448.40
5.1.20.0070.0398.42
5.1.10.0140.0668.14
5.1.00.0050.0298.15
5.0.50.0060.0226.62
5.0.40.0060.0236.48
5.0.30.0100.0526.29
5.0.20.0060.0256.26
5.0.10.0070.0226.25
5.0.00.0150.0646.23
4.4.90.0050.0324.78
4.4.80.0090.0244.76
4.4.70.0070.0234.75
4.4.60.0040.0234.75
4.4.50.0050.0164.77
4.4.40.0060.0234.71
4.4.30.0030.0164.76
4.4.20.0020.0184.84
4.4.10.0080.0154.85
4.4.00.0030.0314.76
4.3.110.0050.0154.67
4.3.100.0050.0154.66
4.3.90.0030.0154.64
4.3.80.0050.0334.59
4.3.70.0050.0164.63
4.3.60.0020.0164.63
4.3.50.0030.0164.63
4.3.40.0040.0264.54
4.3.30.0000.0193.29
4.3.20.0010.0183.27
4.3.10.0040.0183.22
4.3.00.0100.0277.04

preferences:
154.1 ms | 939 KiB | 8 Q