3v4l.org

run code in 300+ PHP versions simultaneously
<?php const WTF=new stdClass; if (defined('WTF') // Just a constant && ! is_scalar(WTF) // but is non scalar && WTF !== null // and is not null (it would be too easy) && ! is_resource(WTF) // and is non resource (surprised!) ) { echo "WTF! This is ", gettype(WTF); }

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.0040.03612.01
5.4.340.0070.03412.01
5.4.320.0090.04112.50
5.4.310.0100.04412.49
5.4.300.0110.04612.50
5.4.290.0130.04712.50
5.4.280.0130.03612.39
5.4.270.0110.03912.39
5.4.260.0060.04212.39
5.4.250.0090.03712.39
5.4.240.0110.03912.39
5.4.230.0090.04012.38
5.4.220.0090.04112.38
5.4.210.0110.03812.38
5.4.200.0100.03812.38
5.4.190.0080.03812.38
5.4.180.0090.03712.38
5.4.170.0070.04412.38
5.4.160.0120.03412.38
5.4.150.0060.04112.38
5.4.140.0100.03712.07
5.4.130.0070.04112.05
5.4.120.0080.03912.01
5.4.110.0060.03712.01
5.4.100.0050.03912.01
5.4.90.0050.04912.01
5.4.80.0100.04112.01
5.4.70.0090.04912.01
5.4.60.0080.04812.00
5.4.50.0080.05012.01
5.4.40.0050.05012.00
5.4.30.0090.04511.99
5.4.20.0090.04811.98
5.4.10.0070.04811.99
5.4.00.0120.04511.48
5.3.290.0060.05412.80
5.3.280.0060.05012.71
5.3.270.0120.04612.73
5.3.260.0120.03812.72
5.3.250.0080.04012.72
5.3.240.0090.04212.72
5.3.230.0070.03912.71
5.3.220.0090.03512.68
5.3.210.0100.03612.68
5.3.200.0080.04112.68
5.3.190.0100.04512.68
5.3.180.0050.04512.68
5.3.170.0050.05012.67
5.3.160.0050.04412.67
5.3.150.0090.04512.67
5.3.140.0110.03512.66
5.3.130.0050.04112.65
5.3.120.0140.03712.66
5.3.110.0080.05512.66
5.3.100.0090.04012.12
5.3.90.0100.04612.08
5.3.80.0080.04112.07
5.3.70.0090.04012.08
5.3.60.0090.04512.06
5.3.50.0090.05612.00
5.3.40.0140.04212.00
5.3.30.0110.04511.95
5.3.20.0080.04811.72
5.3.10.0090.04411.70
5.3.00.0080.05711.68
5.2.170.0070.0409.18
5.2.160.0060.0349.18
5.2.150.0100.0399.18
5.2.140.0090.0349.18
5.2.130.0070.0349.14
5.2.120.0050.0379.14
5.2.110.0080.0359.15
5.2.100.0060.0409.14
5.2.90.0090.0349.14
5.2.80.0090.0379.14
5.2.70.0040.0359.14
5.2.60.0080.0319.09
5.2.50.0050.0369.07
5.2.40.0100.0359.03
5.2.30.0060.0449.01
5.2.20.0130.0589.00
5.2.10.0080.0398.92
5.2.00.0070.0388.79
5.1.60.0060.0348.06
5.1.50.0060.0318.06
5.1.40.0060.0318.04
5.1.30.0030.0338.40
5.1.20.0080.0338.41
5.1.10.0160.0698.14
5.1.00.0090.0348.14
5.0.50.0140.0316.62
5.0.40.0080.0346.48
5.0.30.0030.0476.29
5.0.20.0020.0376.27
5.0.10.0060.0306.24
5.0.00.0070.0596.23
4.4.90.0060.0274.78
4.4.80.0030.0214.75
4.4.70.0180.0414.76
4.4.60.0070.0194.75
4.4.50.0070.0224.77
4.4.40.0050.0344.70
4.4.30.0030.0224.76
4.4.20.0070.0204.84
4.4.10.0110.0334.85
4.4.00.0050.0364.76
4.3.110.0050.0264.67
4.3.100.0040.0264.66
4.3.90.0040.0234.63
4.3.80.0050.0354.58
4.3.70.0050.0204.63
4.3.60.0020.0224.63
4.3.50.0040.0214.63
4.3.40.0030.0314.54
4.3.30.0030.0213.28
4.3.20.0020.0233.26
4.3.10.0030.0203.22
4.3.00.0130.0237.03

preferences:
143.58 ms | 1394 KiB | 7 Q