3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testVar = 'foo'; $var2 = 'two'; // list of keys to ignore (including the name of this variable) $ignore = array('GLOBALS', '_FILES', '_COOKIE', '_POST', '_GET', '_SERVER', '_ENV', 'ignore'); // diff the ignore list as keys after merging any missing ones with the defined list $vars = array_diff_key(get_defined_vars() + array_flip($ignore), array_flip($ignore)); // should be left with the user defined var(s) (in this case $testVar) var_dump($vars);

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.0120.00616.38
8.3.50.0120.01121.92
8.3.40.0100.00718.80
8.3.30.0030.01018.96
8.3.20.0070.00020.35
8.3.10.0060.00323.67
8.3.00.0000.00919.13
8.2.180.0090.00616.38
8.2.170.0130.00722.96
8.2.160.0160.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00022.13
8.2.110.0000.01021.91
8.2.100.0090.00317.72
8.2.90.0080.00019.05
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0050.00217.80
8.2.50.0040.00418.07
8.2.40.0000.00819.88
8.2.30.0000.00818.04
8.2.20.0000.00717.68
8.2.10.0040.00418.05
8.2.00.0090.00017.74
8.1.280.0030.01225.92
8.1.270.0150.00423.93
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00020.82
8.1.230.0040.00719.16
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0000.00817.10
8.1.180.0030.00518.10
8.1.170.0000.00818.33
8.1.160.0080.00021.96
8.1.150.0090.00018.61
8.1.140.0030.00617.39
8.1.130.0070.00017.83
8.1.120.0030.00517.35
8.1.110.0000.00817.39
8.1.100.0000.00817.34
8.1.90.0000.00717.42
8.1.80.0040.00417.42
8.1.70.0030.00317.33
8.1.60.0080.00317.52
8.1.50.0030.00617.36
8.1.40.0020.00517.38
8.1.30.0040.00417.49
8.1.20.0000.00817.55
8.1.10.0000.00717.48
8.1.00.0000.00817.27
8.0.300.0070.00018.77
8.0.290.0000.00917.05
8.0.280.0070.00018.25
8.0.270.0070.00017.13
8.0.260.0030.00317.06
8.0.250.0040.00416.99
8.0.240.0080.00016.93
8.0.230.0000.00716.89
8.0.220.0000.00716.88
8.0.210.0030.00516.89
8.0.200.0000.00616.93
8.0.190.0050.00316.93
8.0.180.0040.00416.95
8.0.170.0040.00416.89
8.0.160.0070.00016.93
8.0.150.0000.00716.86
8.0.140.0020.00516.84
8.0.130.0030.00313.31
8.0.120.0040.00416.81
8.0.110.0050.00216.93
8.0.100.0040.00416.66
8.0.90.0030.00316.92
8.0.80.0110.00416.82
8.0.70.0040.00416.68
8.0.60.0070.00016.84
8.0.50.0040.00416.91
8.0.30.0110.00717.05
8.0.20.0100.00917.40
8.0.10.0000.00717.06
8.0.00.0090.01216.67
7.4.330.0000.00515.09
7.4.320.0030.00316.52
7.4.300.0000.00616.41
7.4.290.0030.00316.34
7.4.280.0050.00316.50
7.4.270.0000.00716.46
7.4.260.0030.00316.47
7.4.250.0070.00016.48
7.4.240.0000.00716.48
7.4.230.0000.00716.33
7.4.220.0150.00616.38
7.4.210.0120.00416.60
7.4.200.0000.00816.23
7.4.190.0090.00016.63
7.4.160.0040.01216.39
7.4.150.0120.00517.40
7.4.140.0080.00917.86
7.4.130.0110.00716.45
7.4.120.0100.00616.31
7.4.110.0140.00316.30
7.4.100.0070.01416.29
7.4.90.0040.01416.32
7.4.80.0150.00619.39
7.4.70.0080.00816.45
7.4.60.0040.01216.45
7.4.50.0030.00516.49
7.4.40.0150.00016.34
7.4.30.0000.01716.47
7.4.00.0100.00714.92
7.3.330.0060.00012.94
7.3.320.0030.00313.01
7.3.310.0030.00316.04
7.3.300.0000.00716.21
7.3.290.0110.00416.18
7.3.280.0110.00616.11
7.3.270.0070.01017.40
7.3.260.0090.00916.38
7.3.250.0120.00816.48
7.3.240.0090.00616.52
7.3.230.0070.01116.39
7.3.210.0040.01416.26
7.3.200.0130.00919.39
7.3.190.0140.00916.11
7.3.180.0110.01116.44
7.3.170.0120.00916.38
7.3.160.0090.00616.21
7.3.120.0070.00714.57
7.2.330.0140.00816.61
7.2.320.0160.00316.42
7.2.310.0140.00316.61
7.2.300.0130.00316.73
7.2.290.0110.00516.69
7.2.00.0040.00819.35
7.1.100.0030.01017.89
7.1.70.0100.00017.09
7.1.60.0100.01419.46
7.1.50.0100.01416.79
7.1.00.0030.07722.28
7.0.200.0000.01016.71
7.0.140.0030.07022.10
7.0.60.0170.04720.03
7.0.50.0100.04317.91
7.0.40.0170.08020.27
7.0.30.0270.04720.17
7.0.20.0400.07320.18
7.0.10.0070.05020.19
7.0.00.0170.07320.29
5.6.280.0130.06320.91
5.6.210.0000.08720.46
5.6.200.0030.04718.11
5.6.190.0000.05020.61
5.6.180.0170.07020.41
5.6.170.0270.04320.48
5.6.160.0100.04320.46
5.6.150.0100.07718.21
5.6.140.0070.04318.20
5.6.130.0100.05018.20
5.6.120.0030.07020.98
5.6.110.0170.07721.13
5.6.100.0100.06720.98
5.6.90.0070.07021.09
5.6.80.0070.05320.36
5.5.350.4270.03720.39
5.5.340.0130.07717.98
5.5.330.0000.04720.37
5.5.320.0300.06720.24
5.5.310.0400.05720.21
5.5.300.0130.04017.94
5.5.290.0100.04717.91
5.5.280.0030.05320.98
5.5.270.0000.08320.95
5.5.260.0100.07320.86
5.5.250.0000.06020.67
5.5.240.0000.08020.35
5.4.450.0700.06319.48
5.4.440.0700.05719.32
5.4.430.0630.05719.31
5.4.420.0500.05319.61
5.4.410.0700.05319.48
5.4.400.0770.05019.32
5.4.390.0670.05719.29
5.4.380.0100.05718.52
5.4.370.0100.05718.61
5.4.360.0230.04318.72
5.4.350.0170.05018.68
5.4.340.0030.06718.72
5.4.320.0070.04012.45
5.4.310.0050.05912.45
5.4.300.0090.04312.45
5.4.290.0090.03712.45
5.4.280.0030.04112.35
5.4.270.0060.03612.34
5.4.260.0050.03912.35
5.4.250.0040.04112.35
5.4.240.0100.03712.35
5.4.230.0070.04812.34
5.4.220.0070.03512.34
5.4.210.0040.03812.34
5.4.200.0060.03812.34
5.4.190.0100.03212.33
5.4.180.0080.05412.33
5.4.170.0060.04012.34
5.4.160.0040.04112.34
5.4.150.0080.03712.34
5.4.140.0060.04112.02
5.4.130.0100.03412.01
5.4.120.0060.04011.97
5.4.110.0070.03711.96
5.4.100.0090.03411.96
5.4.90.0090.03711.96
5.4.80.0070.04311.96
5.4.70.0070.03611.96
5.4.60.0090.03711.96
5.4.50.0060.03611.96
5.4.40.0060.04711.95
5.4.30.0070.04511.95
5.4.20.0040.04011.95
5.4.10.0070.03711.95
5.4.00.0090.04911.44
5.3.290.0100.06212.80
5.3.280.0050.04712.71
5.3.270.0120.04512.73
5.3.260.0080.03912.72
5.3.250.0080.03712.71
5.3.240.0080.05212.72
5.3.230.0140.04712.71
5.3.220.0120.03712.68
5.3.210.0060.04312.68
5.3.200.0080.05412.68
5.3.190.0090.03812.68
5.3.180.0110.04412.67
5.3.170.0080.03612.67
5.3.160.0100.03512.67
5.3.150.0060.03812.67
5.3.140.0060.03712.66
5.3.130.0070.03912.66
5.3.120.0070.03912.66
5.3.110.0080.03812.66
5.3.100.0030.04012.12
5.3.90.0090.03412.08
5.3.80.0070.03512.08
5.3.70.0080.03512.07
5.3.60.0060.03712.06
5.3.50.0090.03712.00
5.3.40.0070.03612.00
5.3.30.0040.03711.95
5.3.20.0050.03711.73
5.3.10.0040.03711.69
5.3.00.0040.04411.68
5.2.170.0060.0309.18
5.2.160.0040.0319.18
5.2.150.0070.0299.18
5.2.140.0070.0299.18
5.2.130.0070.0289.14
5.2.120.0070.0289.14
5.2.110.0030.0329.15
5.2.100.0020.0319.14
5.2.90.0050.0299.14
5.2.80.0050.0299.14
5.2.70.0030.0329.14
5.2.60.0090.0279.09
5.2.50.0050.0309.06
5.2.40.0070.0279.04
5.2.30.0050.0309.02
5.2.20.0080.0279.00
5.2.10.0050.0298.93
5.2.00.0070.0278.78
5.1.60.0040.0258.07
5.1.50.0040.0278.07
5.1.40.0070.0238.04
5.1.30.0100.0228.39
5.1.20.0070.0368.41
5.1.10.0070.0268.14
5.1.00.0020.0298.14
5.0.50.0040.0216.62
5.0.40.0060.0186.48
5.0.30.0020.0366.29
5.0.20.0030.0216.26
5.0.10.0040.0206.24
5.0.00.0030.0316.23
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0030.0164.76
4.4.60.0020.0164.75
4.4.50.0030.0164.77
4.4.40.0010.0274.71
4.4.30.0030.0154.75
4.4.20.0000.0184.84
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0184.66
4.3.90.0030.0224.64
4.3.80.0010.0324.59
4.3.70.0020.0164.63
4.3.60.0020.0234.63
4.3.50.0020.0164.63
4.3.40.0030.0344.54
4.3.30.0010.0173.28
4.3.20.0040.0153.26
4.3.10.0030.0213.22
4.3.00.0130.0239.44

preferences:
55.39 ms | 400 KiB | 5 Q