3v4l.org

run code in 300+ PHP versions simultaneously
<?php $refVariable = false; $refName = 'refVariable'; $callback = function() use (&$refVariable) { static $foo =& $refVariable; var_dump($refVariable); var_dump($foo); }; $function = new \ReflectionFunction($callback); $staticVariables = $function->getStaticVariables(); $callback(); $staticVariables['foo'] = 8; $callback();

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.03612.02
5.4.320.0050.03712.52
5.4.310.0060.03912.52
5.4.300.0050.03712.52
5.4.290.0070.03712.51
5.4.280.0030.03912.41
5.4.270.0070.03512.41
5.4.260.0100.03512.41
5.4.250.0070.05512.41
5.4.240.0090.04812.41
5.4.230.0060.04112.40
5.4.220.0050.04012.40
5.4.210.0060.04212.40
5.4.200.0020.04412.40
5.4.190.0100.03212.39
5.4.180.0050.03812.40
5.4.170.0070.03512.41
5.4.160.0050.03712.40
5.4.150.0070.03412.40
5.4.140.0050.03712.09
5.4.130.0050.03612.07
5.4.120.0090.03512.04
5.4.110.0070.03512.03
5.4.100.0030.04012.03
5.4.90.0060.03912.03
5.4.80.0060.04812.03
5.4.70.0090.03612.02
5.4.60.0100.04612.03
5.4.50.0060.04812.03
5.4.40.0070.04812.02
5.4.30.0060.04712.01
5.4.20.0080.04712.00
5.4.10.0070.03712.02
5.4.00.0070.04511.50
5.3.290.0110.05012.80
5.3.280.0100.05012.71
5.3.270.0070.04912.72
5.3.260.0100.05312.72
5.3.250.0080.03712.72
5.3.240.0030.04212.72
5.3.230.0080.03712.71
5.3.220.0120.03812.68
5.3.210.0130.05012.68
5.3.200.0110.05112.68
5.3.190.0120.04512.68
5.3.180.0090.03812.67
5.3.170.0030.04212.67
5.3.160.0060.03712.67
5.3.150.0070.04012.67
5.3.140.0110.04012.66
5.3.130.0080.03812.66
5.3.120.0030.04412.66
5.3.110.0090.04312.66
5.3.100.0060.03812.13
5.3.90.0090.03512.11
5.3.80.0030.04012.09
5.3.70.0050.04212.10
5.3.60.0110.03712.09
5.3.50.0100.04412.02
5.3.40.0070.04412.03
5.3.30.0110.04611.98
5.3.20.0070.04511.77
5.3.10.0030.03911.73
5.3.00.0060.03811.72
5.2.170.0100.0399.18
5.2.160.0070.0429.18
5.2.150.0070.0389.18
5.2.140.0070.0379.18
5.2.130.0090.0369.14
5.2.120.0040.0449.14
5.2.110.0080.0329.15
5.2.100.0040.0329.14
5.2.90.0070.0309.14
5.2.80.0070.0359.14
5.2.70.0050.0429.14
5.2.60.0030.0319.09
5.2.50.0060.0299.06
5.2.40.0050.0299.04
5.2.30.0070.0299.01
5.2.20.0070.0289.01
5.2.10.0040.0298.92
5.2.00.0070.0278.79
5.1.60.0040.0248.06
5.1.50.0040.0268.07
5.1.40.0020.0278.04
5.1.30.0090.0288.40
5.1.20.0050.0288.42
5.1.10.0080.0278.14
5.1.00.0060.0278.14
5.0.50.0030.0266.63
5.0.40.0050.0196.48
5.0.30.0060.0356.29
5.0.20.0040.0256.27
5.0.10.0070.0356.24
5.0.00.0070.0396.23
4.4.90.0110.0364.78
4.4.80.0050.0244.75
4.4.70.0050.0184.76
4.4.60.0050.0184.75
4.4.50.0150.0384.77
4.4.40.0030.0834.71
4.4.30.0070.0194.76
4.4.20.0020.0204.84
4.4.10.0020.0214.84
4.4.00.0060.0244.76
4.3.110.0030.0184.67
4.3.100.0040.0144.67
4.3.90.0030.0214.63
4.3.80.0050.0404.58
4.3.70.0020.0154.63
4.3.60.0020.0164.63
4.3.50.0040.0154.63
4.3.40.0020.0364.54
4.3.30.0020.0223.28
4.3.20.0020.0183.26
4.3.10.0030.0243.22
4.3.00.0030.0307.04

preferences:
138.59 ms | 1394 KiB | 7 Q