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.0090.05512.03
5.4.340.0100.06612.03
5.4.320.0160.05512.52
5.4.310.0130.05512.52
5.4.300.0140.05312.52
5.4.290.0150.06512.51
5.4.280.0120.05112.41
5.4.270.0100.04212.41
5.4.260.0050.04612.41
5.4.250.0130.04312.41
5.4.240.0080.04712.41
5.4.230.0200.08612.40
5.4.220.0200.07912.41
5.4.210.0210.06612.41
5.4.200.0060.05412.40
5.4.190.0070.05212.40
5.4.180.0100.04912.40
5.4.170.0060.04812.41
5.4.160.0050.04612.40
5.4.150.0130.07412.39
5.4.140.0130.05312.09
5.4.130.0160.05612.07
5.4.120.0120.04812.04
5.4.110.0070.05212.03
5.4.100.0070.04412.03
5.4.90.0120.04812.03
5.4.80.0130.06412.03
5.4.70.0110.04612.03
5.4.60.0070.04112.03
5.4.50.0070.03912.02
5.4.40.0040.03712.01
5.4.30.0060.03612.01
5.4.20.0050.03712.00
5.4.10.0060.04912.01
5.4.00.0090.04311.50
5.3.290.0120.04812.80
5.3.280.0100.04612.71
5.3.270.0100.04512.72
5.3.260.0100.03912.72
5.3.250.0100.04912.72
5.3.240.0090.04912.72
5.3.230.0070.05212.71
5.3.220.0100.05312.68
5.3.210.0130.05812.68
5.3.200.0120.05012.68
5.3.190.0110.05012.68
5.3.180.0080.06312.68
5.3.170.0090.05212.67
5.3.160.0090.05012.68
5.3.150.0070.05412.67
5.3.140.0060.05712.66
5.3.130.0100.05412.66
5.3.120.0120.05012.66
5.3.110.0150.05412.66
5.3.100.0090.04712.13
5.3.90.0080.04712.11
5.3.80.0120.04312.09
5.3.70.0120.04312.09
5.3.60.0060.05012.08
5.3.50.0100.04312.02
5.3.40.0120.04412.02
5.3.30.0050.04011.98
5.3.20.0100.04211.77
5.3.10.0050.04811.73
5.3.00.0090.04911.71
5.2.170.0060.0409.22
5.2.160.0050.0459.21
5.2.150.0100.0429.21
5.2.140.0070.0409.22
5.2.130.0070.0469.17
5.2.120.0120.0429.18
5.2.110.0090.0399.18
5.2.100.0070.0489.18
5.2.90.0080.0399.18
5.2.80.0040.0459.18
5.2.70.0040.0459.17
5.2.60.0060.0419.13
5.2.50.0060.0439.09
5.2.40.0060.0489.07
5.2.30.0070.0579.05
5.2.20.0080.0369.04
5.2.10.0080.0368.95
5.2.00.0090.0378.80
5.1.60.0060.0338.09
5.1.50.0100.0268.09
5.1.40.0080.0318.07
5.1.30.0070.0328.43
5.1.20.0060.0388.43
5.1.10.0070.0308.16
5.1.00.0050.0348.16
5.0.50.0040.0266.64
5.0.40.0060.0316.50
5.0.30.0060.0356.31
5.0.20.0050.0246.28
5.0.10.0060.0336.25
5.0.00.0030.0396.24
4.4.90.0050.0334.78
4.4.80.0160.0514.76
4.4.70.0060.0204.75
4.4.60.0120.0264.75
4.4.50.0080.0474.77
4.4.40.0090.0684.71
4.4.30.0110.0394.76
4.4.20.0040.0254.84
4.4.10.0040.0244.85
4.4.00.0030.0344.76
4.3.110.0020.0264.67
4.3.100.0040.0224.66
4.3.90.0020.0274.64
4.3.80.0050.0354.58
4.3.70.0080.0224.63
4.3.60.0080.0414.63
4.3.50.0030.0294.63
4.3.40.0040.0374.54
4.3.30.0060.0363.30
4.3.20.0050.0523.27
4.3.10.0020.0263.24
4.3.00.0000.0237.27

preferences:
144.4 ms | 1394 KiB | 7 Q