3v4l.org

run code in 300+ PHP versions simultaneously
<?php function giveArray() { return [ 'foo' => 'bar' ]; } function giveFalse() { return false; } if (isset(giveArray()['foo'])){ echo "true \r\n"; } if (!isset(giveFalse)['foo']) { echo "false \r\n" }

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.350.0200.08212.03
5.4.340.0210.08712.03
5.4.320.0100.07612.52
5.4.310.0230.10012.51
5.4.300.0530.16012.52
5.4.290.0060.06912.51
5.4.280.0150.08112.41
5.4.270.0080.10512.41
5.4.260.0140.05512.41
5.4.250.0160.09512.41
5.4.240.0110.05512.41
5.4.230.0180.10312.41
5.4.220.0130.09312.40
5.4.210.0240.09812.41
5.4.200.0120.08012.40
5.4.190.0200.06512.40
5.4.180.0270.09612.40
5.4.170.0310.14312.41
5.4.160.0260.13112.40
5.4.150.0110.06512.40
5.4.140.0150.09212.09
5.4.130.0170.07712.07
5.4.120.0080.04912.03
5.4.110.0080.04112.03
5.4.100.0110.06112.03
5.4.90.0150.08812.03
5.4.80.0280.11112.04
5.4.70.0100.06512.03
5.4.60.0100.05412.03
5.4.50.0150.09112.03
5.4.40.0270.09112.01
5.4.30.0100.05912.02
5.4.20.0330.08512.01
5.4.10.0090.04412.01
5.4.00.0140.07411.51
5.3.290.0100.06712.80
5.3.280.0220.08512.71
5.3.270.0150.07312.72
5.3.260.0130.09212.72
5.3.250.0210.10112.72
5.3.240.0280.10512.72
5.3.230.0140.08312.71
5.3.220.0220.08112.68
5.3.210.0180.07912.68
5.3.200.0200.08412.68
5.3.190.0170.07312.68
5.3.180.0220.10212.68
5.3.170.0110.07012.67
5.3.160.0150.09512.67
5.3.150.0120.05212.67
5.3.140.0240.09612.66
5.3.130.0200.06312.66
5.3.120.0140.05812.66
5.3.110.0160.05912.66
5.3.100.0160.07812.13
5.3.90.0060.05612.11
5.3.80.0060.05012.09
5.3.70.0180.07312.09
5.3.60.0060.05212.08
5.3.50.0120.06712.02
5.3.40.0110.04612.02
5.3.30.0170.05211.98
5.3.20.0110.06711.76
5.3.10.0090.05211.74
5.3.00.0120.04311.71
5.2.170.0090.0409.22
5.2.160.0080.0369.22
5.2.150.0100.0359.21
5.2.140.0050.0509.21
5.2.130.0110.0429.17
5.2.120.0070.0339.18
5.2.110.0080.0349.18
5.2.100.0090.0339.18
5.2.90.0090.0349.18
5.2.80.0080.0399.17
5.2.70.0130.0449.17
5.2.60.0060.0389.12
5.2.50.0070.0399.09
5.2.40.0060.0349.07
5.2.30.0040.0409.05
5.2.20.0040.0549.04
5.2.10.0070.0378.95
5.2.00.0130.0438.80
5.1.60.0170.0398.08
5.1.50.0190.0398.08
5.1.40.0260.0818.07
5.1.30.0050.0628.42
5.1.20.0100.0398.43
5.1.10.0070.0388.16
5.1.00.0120.0488.16
5.0.50.0060.0296.64
5.0.40.0070.0286.50
5.0.30.0030.0456.31
5.0.20.0050.0286.29
5.0.10.0070.0276.25
5.0.00.0090.0376.24
4.4.90.0110.0224.78
4.4.80.0150.0264.75
4.4.70.0130.0294.76
4.4.60.0060.0234.75
4.4.50.0050.0244.77
4.4.40.0060.0334.71
4.4.30.0100.0214.76
4.4.20.0030.0234.84
4.4.10.0050.0254.85
4.4.00.0090.0304.75
4.3.110.0040.0244.67
4.3.100.0040.0244.66
4.3.90.0040.0154.63
4.3.80.0050.0624.58
4.3.70.0070.0314.63
4.3.60.0070.0214.62
4.3.50.0060.0224.63
4.3.40.0070.0474.53
4.3.30.0070.0493.30
4.3.20.0140.0433.28
4.3.10.0040.0443.24
4.3.00.0170.0137.28

preferences:
139.9 ms | 1394 KiB | 7 Q