3v4l.org

run code in 300+ PHP versions simultaneously
e<?php $a = 'foo'; $temporaryA = $a; $a = md5('value for finding ' . uniqid()); $variables = get_defined_vars(); $key = array_search($a, $variables, true); var_dump($key); $a = $temporaryA; unset ($temporaryA);

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)
7.3.10.0090.00316.64
7.3.00.0060.00816.62
7.2.130.0060.00917.06
7.2.120.0090.00616.68
7.2.110.0100.00316.95
7.2.100.0030.00617.05
7.2.90.0120.00316.89
7.2.80.0040.00716.71
7.2.70.0000.01316.95
7.2.60.0140.00416.92
7.2.50.0060.00616.90
7.2.40.0060.00316.63
7.2.30.0140.00316.71
7.2.20.0030.01317.04
7.2.10.0000.01116.98
7.2.00.0120.00316.92
7.1.250.0040.00415.68
7.1.70.0030.01317.15
7.1.60.0070.01319.70
7.1.50.0200.01034.88
7.1.00.0070.07022.43
7.0.200.0030.00716.89
7.0.140.0070.07022.21
7.0.60.0070.06319.82
7.0.50.0070.06717.85
7.0.40.0130.08320.32
7.0.30.0330.04320.09
7.0.20.0270.04720.16
7.0.10.0100.04020.19
7.0.00.0100.08720.16
5.6.280.0070.06721.07
5.6.210.0170.07020.50
5.6.200.0030.06718.12
5.6.190.0170.05720.56
5.6.180.0500.06320.34
5.6.170.0200.04020.36
5.6.160.0030.04720.48
5.6.150.0130.07718.17
5.6.140.0030.08718.18
5.6.130.0030.09018.21
5.6.120.0070.05320.98
5.6.110.0030.07020.98
5.6.100.0000.09021.01
5.6.90.0130.07720.87
5.6.80.0100.05320.39
5.5.350.0230.08320.39
5.5.340.0000.08717.92
5.5.330.0100.08020.40
5.5.320.0070.07020.29
5.5.310.0200.08320.18
5.5.300.0070.03718.02
5.5.290.0030.08317.91
5.5.280.0100.07720.88
5.5.270.0030.07720.75
5.5.260.0100.07320.86
5.5.250.0070.03720.61
5.5.240.0130.07320.22
5.4.450.0530.06319.48
5.4.440.0900.06019.63
5.4.430.0130.05019.41
5.4.420.1000.07319.44
5.4.410.1170.04019.34
5.4.400.0430.04719.34
5.4.390.0800.05719.08
5.4.380.0270.05318.62
5.4.370.0270.05018.57
5.4.360.0270.04718.71
5.4.350.0230.05018.52
5.4.340.0170.05718.69
5.4.320.0070.03612.45
5.4.310.0030.04312.45
5.4.300.0060.03812.45
5.4.290.0060.04212.45
5.4.280.0100.03912.35
5.4.270.0060.03812.35
5.4.260.0080.03712.35
5.4.250.0080.05312.34
5.4.240.0070.03512.34
5.4.230.0080.04412.34
5.4.220.0080.03412.34
5.4.210.0050.03612.34
5.4.200.0050.04712.34
5.4.190.0080.03412.33
5.4.180.0050.03712.34
5.4.170.0100.03212.35
5.4.160.0070.03412.34
5.4.150.0090.03112.34
5.4.140.0090.03312.02
5.4.130.0050.04112.01
5.4.120.0050.03511.96
5.4.110.0060.04211.96
5.4.100.0050.03511.96
5.4.90.0060.03611.96
5.4.80.0090.03811.96
5.4.70.0060.03411.96
5.4.60.0060.03311.96
5.4.50.0050.03911.96
5.4.40.0070.03711.95
5.4.30.0080.03211.95
5.4.20.0070.04111.95
5.4.10.0040.03611.95
5.4.00.0050.04211.44
5.3.290.0090.04112.80
5.3.280.0050.03812.71
5.3.270.0060.03812.73
5.3.260.0060.04112.72
5.3.250.0070.03612.72
5.3.240.0110.03512.72
5.3.230.0090.03512.70
5.3.220.0090.03612.68
5.3.210.0080.03612.68
5.3.200.0050.03612.68
5.3.190.0080.04012.68
5.3.180.0080.03412.68
5.3.170.0100.04312.67
5.3.160.0080.03612.67
5.3.150.0100.03412.67
5.3.140.0040.03912.66
5.3.130.0030.04712.66
5.3.120.0070.04412.65
5.3.110.0080.04112.66
5.3.100.0090.04412.12
5.3.90.0080.04912.08
5.3.80.0090.04712.08
5.3.70.0100.04812.07
5.3.60.0060.03712.06
5.3.50.0040.03812.00
5.3.40.0050.03812.00
5.3.30.0060.03411.95
5.3.20.0070.04411.73
5.3.10.0070.03611.70
5.3.00.0040.03711.68
5.2.170.0070.0329.18
5.2.160.0030.0309.18
5.2.150.0060.0299.18
5.2.140.0050.0309.18
5.2.130.0050.0289.14
5.2.120.0090.0239.13
5.2.110.0060.0299.14
5.2.100.0050.0279.14
5.2.90.0040.0299.14
5.2.80.0050.0299.14
5.2.70.0020.0429.14
5.2.60.0050.0339.09
5.2.50.0050.0289.06
5.2.40.0050.0309.04
5.2.30.0070.0299.01
5.2.20.0030.0299.03
5.2.10.0090.0308.94
5.2.00.0040.0338.79
5.1.60.0070.0298.07
5.1.50.0030.0268.07
5.1.40.0050.0248.06
5.1.30.0040.0278.41
5.1.20.0050.0258.43
5.1.10.0040.0258.14
5.1.00.0070.0228.16
5.0.50.0020.0266.63
5.0.40.0050.0196.49
5.0.30.0020.0326.30
5.0.20.0070.0246.27
5.0.10.0030.0206.25
5.0.00.0030.0316.25
4.4.90.0030.0174.78
4.4.80.0050.0124.75
4.4.70.0050.0174.76
4.4.60.0020.0194.76
4.4.50.0050.0174.77
4.4.40.0040.0344.71
4.4.30.0060.0124.76
4.4.20.0030.0174.85
4.4.10.0030.0164.85
4.4.00.0030.0254.76
4.3.110.0070.0224.67
4.3.100.0020.0184.66
4.3.90.0030.0144.63
4.3.80.0020.0334.58
4.3.70.0050.0194.63
4.3.60.0010.0164.63
4.3.50.0040.0194.63
4.3.40.0010.0264.54
4.3.30.0020.0163.29
4.3.20.0030.0153.27
4.3.10.0020.0153.23
4.3.00.0070.02033.60

preferences:
34.3 ms | 401 KiB | 5 Q