3v4l.org

run code in 500+ PHP versions simultaneously
<?php $thing = null; echo "\n---\n"; if ( $thing->count ) { echo "YES, there is a count.\n"; } else { echo "NO count\n"; } echo "\n---\n"; if ( $thing instanceof StdClass && $thing->count ) { echo "YES, there is a count.\n"; } else { echo "NO count\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)
8.5.80.0090.00216.58
8.5.70.0080.00816.80
8.5.60.0130.00516.99
8.5.50.0100.00818.32
8.5.30.0080.01018.08
8.5.20.0130.00820.15
8.5.10.0080.01016.67
8.5.00.0120.00922.75
8.4.220.0150.01019.55
8.4.210.0120.00919.52
8.4.180.0130.00919.70
8.4.170.0120.00920.55
8.4.160.0110.01223.92
8.4.150.0070.00516.84
8.4.140.0180.00817.59
8.4.130.0050.00318.15
8.4.120.0070.00520.42
8.4.110.0150.00719.73
8.4.100.0420.00717.63
8.4.90.0390.00717.98
8.4.80.0200.00817.77
8.4.70.0400.00917.93
8.4.60.0440.00517.48
8.4.50.0400.01017.78
8.4.40.0280.00717.57
8.4.30.0220.00617.86
8.4.20.0200.00417.96
8.4.10.0390.00517.54
8.3.310.0090.00818.47
8.3.300.0130.01020.86
8.3.290.0110.00820.45
8.3.280.0100.01118.58
8.3.270.0140.00516.90
8.3.260.0130.00616.79
8.3.250.0090.00917.09
8.3.240.0370.01016.63
8.3.230.0320.00416.73
8.3.220.0150.00616.81
8.3.210.0250.00216.61
8.3.200.0500.00516.56
8.3.190.0510.00616.63
8.3.180.0380.00916.59
8.3.170.0420.00916.38
8.3.160.0390.01316.76
8.3.150.0440.01016.33
8.3.140.0460.00716.65
8.3.130.0280.00616.79
8.3.120.0220.00716.40
8.3.110.0340.00816.74
8.3.100.0430.00616.61
8.3.90.0430.00816.72
8.3.80.0380.00816.54
8.3.70.0200.00416.36
8.3.60.0170.00616.66
8.3.50.0190.00616.84
8.3.40.0390.00717.21
8.3.30.0300.01017.38
8.3.20.0360.00617.30
8.3.10.0340.00817.20
8.3.00.0190.00817.37
8.2.310.0100.00918.31
8.2.300.0110.01020.06
8.2.290.0270.00716.67
8.2.280.0280.01216.48
8.2.270.0350.00916.91
8.2.260.0280.01016.46
8.2.250.0290.01216.53
8.2.240.0380.00916.61
8.2.230.0250.01016.60
8.2.220.0330.00716.29
8.2.210.0360.00716.34
8.2.200.0360.00916.63
8.2.190.0390.00616.14
8.2.180.0340.01216.86
8.2.170.0430.00417.79
8.2.160.0300.00517.49
8.2.150.0360.00717.37
8.2.140.0340.01017.54
8.2.130.0280.00217.52
8.2.120.0350.00517.46
8.2.110.0360.00717.50
8.2.100.0370.00617.57
8.2.90.0250.00617.64
8.2.80.0150.00417.50
8.2.70.0360.00717.54
8.2.60.0270.01117.70
8.2.50.0230.00617.59
8.2.40.0200.00417.63
8.2.30.0280.00917.44
8.2.20.0320.00917.26
8.2.10.0320.01217.36
8.2.00.0330.01117.23
8.1.340.0120.00817.67

preferences:
44.34 ms | 873 KiB | 5 Q